From 33ac8c890215aad5133a5b00efcdb10cd8f81fa0 Mon Sep 17 00:00:00 2001
From: Patrick Imbo <patrick.imbo@c-s.fr>
Date: Fri, 25 Aug 2006 14:52:14 +0000
Subject: [PATCH] =?UTF-8?q?Visu=20Apprentissage=20:=20MAJ=20des=20classes?=
 =?UTF-8?q?=20de=20visu=20+=20m=C3=A9thodes=20de=20Learn()=20et=20Classif(?=
 =?UTF-8?q?)=20=20de=20la=20classe=20otbPrincipalImageViewAS?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 Code/Visu/otbPrincipalImageViewAS.txx | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/Code/Visu/otbPrincipalImageViewAS.txx b/Code/Visu/otbPrincipalImageViewAS.txx
index 7d5e16808a..5aa0b5a567 100755
--- a/Code/Visu/otbPrincipalImageViewAS.txx
+++ b/Code/Visu/otbPrincipalImageViewAS.txx
@@ -42,7 +42,6 @@ template <class TPixel, class TPixelOverlay>
 PrincipalImageViewAS<TPixel, TPixelOverlay>::
 PrincipalImageViewAS() : GLVectorImageViewClick<TPixel, TPixelOverlay>()
   {
-  //cEstimator = EstimatorType::New();
 		
   }
 
@@ -403,16 +402,23 @@ PrincipalImageViewAS<TPixel, TPixelOverlay>::LearnStep()
   }
   
   mPSet->SetPoints( mCont );
+  std::cout << "1" << std::endl;
   lPSet->SetPoints( lCont );  
+  std::cout << "2" << std::endl;
   
   EstimatorType::Pointer learningEstimator = EstimatorType::New();
 
+  std::cout << "3" << std::endl;
   learningEstimator->SetInputPointSet( mPSet );
+  std::cout << "4" << std::endl;
   learningEstimator->SetTrainingPointSet( lPSet );
+  std::cout << "5" << std::endl;
   learningEstimator->SetNumberOfClasses( 2 );
-  learningEstimator->Modified();
+  std::cout << "6" << std::endl;
 
+  std::cout << "pointId : " << pointId << std::endl;
   learningEstimator->Update();
+  std::cout << "7" << std::endl;
   
   cEstimator = learningEstimator;
   std::cout << "End learning model" << std::endl;
-- 
GitLab