From 27cfe166e7ec18eb153c73d78882661032f95ca4 Mon Sep 17 00:00:00 2001
From: Jonathan Guinet <jonathan.guinet@c-s.fr>
Date: Thu, 3 May 2012 15:42:02 +0200
Subject: [PATCH] BUG: Normalize option has no effect in PCA filter.

---
 Testing/Code/BasicFilters/otbPCAImageFilter.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Testing/Code/BasicFilters/otbPCAImageFilter.cxx b/Testing/Code/BasicFilters/otbPCAImageFilter.cxx
index 4ce4b64590..9bf2ed93c1 100644
--- a/Testing/Code/BasicFilters/otbPCAImageFilter.cxx
+++ b/Testing/Code/BasicFilters/otbPCAImageFilter.cxx
@@ -74,7 +74,7 @@ int otbPCAImageFilterTest ( int argc, char* argv[] )
   std::string outputImageName = parseResult->GetOutputImage();
   const unsigned int nbComponents = parseResult->IsOptionPresent("--NumComponents") ?
     parseResult->GetParameterUInt("--NumComponents") : 0;
-  const bool normalization = parseResult->IsOptionPresent("--NormalizeVariance");
+  const bool normalization = parseResult->IsOptionPresent("--Normalize");
 
   // Main type definition
   const unsigned int Dimension = 2;
-- 
GitLab