Commit 80e4d318 authored by Guillaume Pasero's avatar Guillaume Pasero

BUG: Mantis-1438: switch to float type

parent 624fb29b
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment