Commit e294c405 authored by Guillaume Pasero's avatar Guillaume Pasero

BUG: Mantis-1166: fix modesearch interaction with foutpos

parent dcff1278
......@@ -125,7 +125,6 @@ private:
else
{
MandatoryOff("foutpos");
DisableParameter("foutpos");
}
}
......@@ -142,6 +141,7 @@ private:
m_Filter->SetThreshold(GetParameterFloat("thres"));
m_Filter->SetMaxIterationNumber(GetParameterInt("maxiter"));
m_Filter->SetRangeBandwidthRamp(GetParameterFloat("rangeramp"));
m_Filter->SetModeSearch(IsParameterEnabled("modesearch"));
//Compute the margin used to ensure exact results (tile wise smoothing)
//This margin is valid for the default uniform kernel used by the
......@@ -156,11 +156,13 @@ private:
}
SetParameterOutputImage("fout", m_Filter->GetOutput());
SetParameterOutputImage("foutpos", m_Filter->GetSpatialOutput());
if (IsParameterEnabled("foutpos") && HasValue("foutpos"))
{
SetParameterOutputImage("foutpos", m_Filter->GetSpatialOutput());
}
if(!IsParameterEnabled("modesearch"))
{
otbAppLogINFO(<<"Mode Search is disabled." << std::endl);
m_Filter->SetModeSearch(false);
otbAppLogINFO(<<"Mode Search is disabled." << std::endl);
}
}
......
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