From 80e4d3185e0e2ee8fbebaa43a2aad8c37794f074 Mon Sep 17 00:00:00 2001 From: Guillaume Pasero Date: Mon, 18 Sep 2017 15:28:28 +0200 Subject: [PATCH] BUG: Mantis-1438: switch to float type --- .../AppClassification/app/otbVectorClassifier.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/Applications/AppClassification/app/otbVectorClassifier.cxx b/Modules/Applications/AppClassification/app/otbVectorClassifier.cxx index 042c4f4504..b8ecd88713 100644 --- a/Modules/Applications/AppClassification/app/otbVectorClassifier.cxx +++ b/Modules/Applications/AppClassification/app/otbVectorClassifier.cxx @@ -62,7 +62,7 @@ public: itkTypeMacro(Self, Application) /** Filters typedef */ - typedef double ValueType; + typedef float ValueType; typedef unsigned int LabelType; typedef itk::FixedArray LabelSampleType; typedef itk::Statistics::ListSample LabelListSampleType; @@ -223,7 +223,7 @@ private: unsigned int itemIndex = GetSelectedItems("feat")[idx]; std::string fieldName = GetChoiceNames( "feat" )[itemIndex]; - mv[idx] = (*it)[fieldName].GetValue(); + mv[idx] = static_cast((*it)[fieldName].GetValue()); } input->PushBack(mv); } -- GitLab