Skip to content
Snippets Groups Projects
Commit 840e9993 authored by Jordi Inglada's avatar Jordi Inglada
Browse files

SampleList Estimator

parent 6de4c7eb
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......@@ -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);
......
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