Skip to content
Snippets Groups Projects
Commit 8783d5c9 authored by brinn's avatar brinn
Browse files

change: ensure the feature vectors always have the same length, i.e. missing...

change: ensure the feature vectors always have the same length, i.e. missing features for individual vectors are not left out but retained as NaN; thus the index of a feature is always the same over a set of feature vectors obtained in one API call

SVN: 17312
parent 2d9975f7
No related branches found
No related tags found
No related merge requests found
......@@ -131,14 +131,14 @@ public class FeatureTableBuilder
}
for (String featureName : featureNames)
{
if (featureNameToIndexMap.containsKey(featureName) == false)
{
featureNameToIndexMap.put(featureName,
new Integer(featureNameToIndexMap.size()));
}
final ImgFeatureDefDTO featureDefinition = featureNameToDefMap.get(featureName);
if (featureDefinition != null)
{
if (featureNameToIndexMap.containsKey(featureName) == false)
{
featureNameToIndexMap.put(featureName,
new Integer(featureNameToIndexMap.size()));
}
List<ImgFeatureValuesDTO> featureValueSets =
dao.getFeatureValues(featureDefinition);
if (featureValueSets.isEmpty())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment