Commit f7462d12 authored by Mickael Savinaud's avatar Mickael Savinaud

BUG: retrieve the correct parameter from the LUT choice entry in the ColorMapping app

parent 6abb07a1
......@@ -575,9 +575,12 @@ private:
m_ContinuousColorMapper->UseInputImageExtremaForScalingOff();
// Set the lut
std::string lut = GetParameterString("method.continuous.lut");
std::string lutTmp = GetParameterString("method.continuous.lut");
std::string lutNameParam = "method.continuous.lut." + lutTmp;
std::string lut = GetParameterName(lutNameParam);
otbAppLogINFO("LUT: "<<lut<<std::endl);
if (lut == "Relief")
{
ReliefColorMapFunctorType::Pointer reliefFunctor = ReliefColorMapFunctorType::New();
......@@ -588,6 +591,7 @@ private:
m_ContinuousColorMapper->SetColormap((ColorMapFilterType::ColormapEnumType) m_LutMap[lut]);
}
m_ContinuousColorMapper->GetColormap()->SetMinimumInputValue(GetParameterFloat("method.continuous.min"));
m_ContinuousColorMapper->GetColormap()->SetMaximumInputValue(GetParameterFloat("method.continuous.max"));
......
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