Skip to content
Snippets Groups Projects
Commit a3ad7403 authored by Ludovic Hussonnois's avatar Ludovic Hussonnois
Browse files

BUG: Mantis 1341: Correct RescaleIntensity Application behavior and documentation.

parent f618e6c6
No related branches found
No related tags found
No related merge requests found
...@@ -52,8 +52,9 @@ private: ...@@ -52,8 +52,9 @@ private:
SetDescription("Rescale the image between two given values."); SetDescription("Rescale the image between two given values.");
SetDocName("Rescale Image"); SetDocName("Rescale Image");
SetDocLongDescription("This application scales the given image pixel intensity between two given values. " SetDocLongDescription("This application scales the given image pixel intensity between two given values.\n"
"By default min (resp. max) value is set to 0 (resp. 255)."); "By default min (resp. max) value is set to 0 (resp. 255).\n"
"Input minimum and maximum values is automatically computed for all image bands.");
SetDocLimitations("None"); SetDocLimitations("None");
SetDocAuthors("OTB-Team"); SetDocAuthors("OTB-Team");
SetDocSeeAlso(" "); SetDocSeeAlso(" ");
...@@ -109,6 +110,7 @@ private: ...@@ -109,6 +110,7 @@ private:
m_RescaleFilter = RescaleImageFilterType::New(); m_RescaleFilter = RescaleImageFilterType::New();
m_RescaleFilter->SetInput( inImage ); m_RescaleFilter->SetInput( inImage );
m_RescaleFilter->SetAutomaticInputMinMaxComputation(false);
m_RescaleFilter->SetInputMinimum( m_MinMaxFilter->GetMinimum() ); m_RescaleFilter->SetInputMinimum( m_MinMaxFilter->GetMinimum() );
m_RescaleFilter->SetInputMaximum( m_MinMaxFilter->GetMaximum() ); m_RescaleFilter->SetInputMaximum( m_MinMaxFilter->GetMaximum() );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment