Commit 5fd7b9e4 authored by Guillaume Pasero's avatar Guillaume Pasero

ENH: handle missing confmap properly

parent e11658ca
......@@ -186,6 +186,11 @@ private:
{
SetParameterOutputImage<ConfidenceImageType>("confmap",m_ClassificationFilter->GetOutputConfidence());
}
else
{
otbAppLogWARNING("Confidence map requested but the classifier doesn't support it!");
this->DisableParameter("confmap");
}
}
}
......
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