Skip to content
Snippets Groups Projects
Commit f7462d12 authored by Mickael Savinaud's avatar Mickael Savinaud
Browse files

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

parent 6abb07a1
Branches
Tags
No related merge requests found
......@@ -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"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment