From 840e9993efd0e1796ecd943e79d028e2f7e6c5a5 Mon Sep 17 00:00:00 2001
From: Jordi Inglada <jordi.inglada@orfeo-toolbox.org>
Date: Mon, 12 Jun 2006 11:45:38 +0000
Subject: [PATCH] SampleList Estimator

---
 Code/Learning/otbSVMSampleListModelEstimator.h   | 6 +++---
 Code/Learning/otbSVMSampleListModelEstimator.txx | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/Code/Learning/otbSVMSampleListModelEstimator.h b/Code/Learning/otbSVMSampleListModelEstimator.h
index 5b0c1c06b9..eb19a1c6f0 100644
--- a/Code/Learning/otbSVMSampleListModelEstimator.h
+++ b/Code/Learning/otbSVMSampleListModelEstimator.h
@@ -43,13 +43,13 @@ namespace otb
 template <class TInputSampleList, 
           class TTrainingSampleList>
 class ITK_EXPORT SVMSampleListModelEstimator: 
-    public otb::SVMModelEstimator<typename TInputSampleList::ValueType, typename TTrainingSampleList::ValueType>
+    public otb::SVMModelEstimator<typename TInputSampleList::ValueType::ValueType, typename TTrainingSampleList::ValueType::ValueType>
 {
 public:
   /** Standard class typedefs. */
   typedef SVMSampleListModelEstimator   Self;
-  typedef SVMModelEstimator<typename TInputSampleList::ValueType,
-			    typename TTrainingSampleList::ValueType>
+  typedef SVMModelEstimator<typename TInputSampleList::ValueType::ValueType,
+			    typename TTrainingSampleList::ValueType::ValueType>
                             Superclass;
 
   typedef itk::SmartPointer<Self>  Pointer;
diff --git a/Code/Learning/otbSVMSampleListModelEstimator.txx b/Code/Learning/otbSVMSampleListModelEstimator.txx
index 951aece2c9..af4459dc77 100644
--- a/Code/Learning/otbSVMSampleListModelEstimator.txx
+++ b/Code/Learning/otbSVMSampleListModelEstimator.txx
@@ -22,8 +22,8 @@ namespace otb
 template<class TInputSampleList, 
          class TTrainingSampleList>
 SVMSampleListModelEstimator<TInputSampleList, TTrainingSampleList>
-::SVMSampleListModelEstimator(void):  SVMModelEstimator<ITK_TYPENAME TInputSampleList::ValueType,
-    ITK_TYPENAME TTrainingSampleList::ValueType>()
+::SVMSampleListModelEstimator(void):  SVMModelEstimator<ITK_TYPENAME TInputSampleList::ValueType::ValueType,
+							ITK_TYPENAME TTrainingSampleList::ValueType::ValueType>()
 
 {
 
@@ -112,7 +112,7 @@ SVMSampleListModelEstimator<TInputSampleList,  TTrainingSampleList>
 
     // If label != 0 
 
-    typename TTrainingSampleList::ValueType label =
+    typename TTrainingSampleList::ValueType::ValueType label =
       trIt.GetMeasurementVector()[0];
 
     this->m_Labels.push_back(label);
-- 
GitLab