From 0419c1f48ff65702392bba1e14b855ab35af233a Mon Sep 17 00:00:00 2001 From: Guillaume Pasero <guillaume.pasero@c-s.fr> Date: Fri, 23 Nov 2012 10:04:27 +0100 Subject: [PATCH] BUG: fix colormapping with support image --- Applications/Utils/otbColorMapping.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Applications/Utils/otbColorMapping.cxx b/Applications/Utils/otbColorMapping.cxx index 0d508d6362..7ee40000b0 100644 --- a/Applications/Utils/otbColorMapping.cxx +++ b/Applications/Utils/otbColorMapping.cxx @@ -482,7 +482,7 @@ private: // image normalisation of the sampling FloatVectorImageType::Pointer supportImage = this->GetParameterImage("method.image.in"); - supportImage->UpdateOutputInformation(); + //supportImage->UpdateOutputInformation(); //normalisation //first of all resampling @@ -584,7 +584,7 @@ private: minVal.SetElement(index, static_cast<FloatVectorImageType::PixelType::ValueType> (histogramList->GetNthElement(index)->Quantile(0, static_cast<float> (this->GetParameterInt("method.image.low"))/ 100.0))); maxVal.SetElement(index, static_cast<FloatVectorImageType::PixelType::ValueType> (histogramList->GetNthElement(index)->Quantile(0, (100.0- static_cast<float> (this->GetParameterInt("method.image.up")))/ 100.0))); } - + m_CasterToLabelImage = CasterToLabelImageType::New(); m_CasterToLabelImage->SetInput(GetParameterFloatImage("in")); m_CasterToLabelImage->InPlaceOn(); -- GitLab