From d684608d60028d41358932fb6a73e11648bf4ddb Mon Sep 17 00:00:00 2001
From: ctraizet <cedric.traizet@c-s.fr>
Date: Fri, 8 Feb 2019 17:38:46 +0100
Subject: [PATCH] ENH: removed commented code of the VD algorithm, which is now
 in EndmemberNumberEstimation

---
 .../app/otbDimensionalityReduction.cxx         | 18 ++----------------
 1 file changed, 2 insertions(+), 16 deletions(-)

diff --git a/Modules/Applications/AppDimensionalityReduction/app/otbDimensionalityReduction.cxx b/Modules/Applications/AppDimensionalityReduction/app/otbDimensionalityReduction.cxx
index 9c7d4bf1f9..d5b6ac1e24 100644
--- a/Modules/Applications/AppDimensionalityReduction/app/otbDimensionalityReduction.cxx
+++ b/Modules/Applications/AppDimensionalityReduction/app/otbDimensionalityReduction.cxx
@@ -28,8 +28,6 @@
 #include "otbMaximumAutocorrelationFactorImageFilter.h"
 #include "otbFastICAImageFilter.h"
 
-//#include "otbVirtualDimensionality.h"
-
 #include "otbStreamingMinMaxVectorImageFilter.h"
 #include "otbVectorRescaleIntensityImageFilter.h"
 
@@ -74,8 +72,6 @@ public:
   typedef otb::StreamingStatisticsVectorImageFilter<FloatVectorImageType> StreamingStatisticsVectorImageFilterType;
 
   typedef StreamingStatisticsVectorImageFilterType::MatrixObjectType::ComponentType                 MatrixType;
-  //typedef otb::VirtualDimensionality<double> VDFilterType;
-
 
   // output rescale
   typedef otb::StreamingMinMaxVectorImageFilter<FloatVectorImageType> MinMaxFilterType;
@@ -154,10 +150,6 @@ private:
     SetDefaultParameterFloat("method.ica.mu", 1.);
     MandatoryOff("method.ica.mu");
 
-    //AddChoice("method.vd","virual Dimension");
-    //SetParameterDescription("method.vd","Virtual Dimension.");
-    //MandatoryOff("method");
-
     AddParameter(ParameterType_Int, "nbcomp", "Number of Components");
     SetParameterDescription("nbcomp", "Number of relevant components kept. By default all components are kept.");
     SetDefaultParameterInt("nbcomp", 0);
@@ -371,12 +363,6 @@ private:
 
         break;
         }
-        /* case 4:
-         {
-         otbAppLogDEBUG( << "VD Algorithm");
-
-         break;
-         }*/
 
       default:
         {
@@ -389,7 +375,7 @@ private:
 
     if (invTransform)
       {
-      if (GetParameterInt("method") == 2) //MAF or VD
+      if (GetParameterInt("method") == 2) //MAF
         {
         this->DisableParameter("outinv");
         otbAppLogWARNING(<<"This application only provides the forward transform for the MAF method.");
@@ -400,7 +386,7 @@ private:
     //Write transformation matrix
     if (this->GetParameterString("outmatrix").size() != 0)
       {
-      if (GetParameterInt("method") == 2) //MAF or VD
+      if (GetParameterInt("method") == 2) //MAF
         {
         otbAppLogWARNING(<<"No transformation matrix available for MAF.");
         }
-- 
GitLab