Skip to content
Snippets Groups Projects
Commit 80e4d318 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

BUG: Mantis-1438: switch to float type

parent 624fb29b
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,7 @@ public:
itkTypeMacro(Self, Application)
/** Filters typedef */
typedef double ValueType;
typedef float ValueType;
typedef unsigned int LabelType;
typedef itk::FixedArray<LabelType,1> LabelSampleType;
typedef itk::Statistics::ListSample<LabelSampleType> LabelListSampleType;
......@@ -223,7 +223,7 @@ private:
unsigned int itemIndex = GetSelectedItems("feat")[idx];
std::string fieldName = GetChoiceNames( "feat" )[itemIndex];
mv[idx] = (*it)[fieldName].GetValue<double>();
mv[idx] = static_cast<ValueType>((*it)[fieldName].GetValue<double>());
}
input->PushBack(mv);
}
......
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