Commit 9746f9b0 authored by OTB Bot's avatar OTB Bot
Browse files

STYLE

No related merge requests found
Showing with 15 additions and 15 deletions
+15 -15
......@@ -180,21 +180,21 @@ private:
void DoUpdateParameters()
{
if (HasValue("in"))
{
FloatVectorImageType::Pointer inImage = this->GetParameterImage<FloatVectorImageType> ("in");
inImage->UpdateOutputInformation();
// Update the values of the channels to be selected
unsigned int nbComponents = inImage->GetNumberOfComponentsPerPixel();
unsigned int nbComp = static_cast<unsigned int> (GetParameterInt("nbcomp"));
if (nbComp > nbComponents)
{
SetParameterInt("nbcomp", nbComponents);
otbAppLogINFO( << "number of selected components can't exceed image dimension : "<<nbComponents );
}
}
if (HasValue("in"))
{
FloatVectorImageType::Pointer inImage = this->GetParameterImage<FloatVectorImageType> ("in");
inImage->UpdateOutputInformation();
// Update the values of the channels to be selected
unsigned int nbComponents = inImage->GetNumberOfComponentsPerPixel();
unsigned int nbComp = static_cast<unsigned int> (GetParameterInt("nbcomp"));
if (nbComp > nbComponents)
{
SetParameterInt("nbcomp", nbComponents);
otbAppLogINFO( << "number of selected components can't exceed image dimension : "<<nbComponents );
}
}
}
void DoExecute()
......
Supports Markdown
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