diff --git a/Applications/Utils/otbColorMapping.cxx b/Applications/Utils/otbColorMapping.cxx index 88dbae4ee33a916f141aa96bfbdd3c067687c0f6..1b4d86c2eb6e72389e1ca1ba85e4eb33f19cbfc2 100644 --- a/Applications/Utils/otbColorMapping.cxx +++ b/Applications/Utils/otbColorMapping.cxx @@ -147,7 +147,7 @@ public: TValue value = m_LabelToImageIntensityMap[i]; for (unsigned int index = 0; index < value.Size(); index++) { - value[index]=value[index]/static_cast<float>(m_WeigthingMap.at(i)); + value[index]=value[index]/static_cast<float>(m_WeigthingMap[i]); } MeanMap[i]=value; }