Skip to content
Snippets Groups Projects
Commit 27cfe166 authored by Jonathan Guinet's avatar Jonathan Guinet
Browse files

BUG: Normalize option has no effect in PCA filter.

parent 08e4c7c6
No related branches found
No related tags found
No related merge requests found
...@@ -74,7 +74,7 @@ int otbPCAImageFilterTest ( int argc, char* argv[] ) ...@@ -74,7 +74,7 @@ int otbPCAImageFilterTest ( int argc, char* argv[] )
std::string outputImageName = parseResult->GetOutputImage(); std::string outputImageName = parseResult->GetOutputImage();
const unsigned int nbComponents = parseResult->IsOptionPresent("--NumComponents") ? const unsigned int nbComponents = parseResult->IsOptionPresent("--NumComponents") ?
parseResult->GetParameterUInt("--NumComponents") : 0; parseResult->GetParameterUInt("--NumComponents") : 0;
const bool normalization = parseResult->IsOptionPresent("--NormalizeVariance"); const bool normalization = parseResult->IsOptionPresent("--Normalize");
// Main type definition // Main type definition
const unsigned int Dimension = 2; const unsigned int Dimension = 2;
......
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