Orfeo ToolBox  4.2
Orfeo ToolBox is not a black box
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
otb::SVMSampleListModelEstimator< TInputSampleList, TTrainingSampleList, TMeasurementFunctor > Class Template Reference

Class for SVM model estimation from SampleLists used for classification. More...

#include <otbSVMSampleListModelEstimator.h>

+ Inheritance diagram for otb::SVMSampleListModelEstimator< TInputSampleList, TTrainingSampleList, TMeasurementFunctor >:
+ Collaboration diagram for otb::SVMSampleListModelEstimator< TInputSampleList, TTrainingSampleList, TMeasurementFunctor >:

Public Types

typedef itk::SmartPointer
< const Self
ConstPointer
 
typedef
TInputSampleList::ConstIterator 
InputSampleListIteratorType
 
typedef TInputSampleList::Pointer InputSampleListPointer
 
typedef TInputSampleList InputSampleListType
 
typedef TInputSampleList::ValueType InputSampleListValueType
 
typedef TMeasurementFunctor MeasurementFunctorType
 
typedef itk::SmartPointer< SelfPointer
 
typedef SVMSampleListModelEstimator Self
 
typedef SVMModelEstimator
< typename
TInputSampleList::MeasurementType,
typename
TTrainingSampleList::MeasurementType > 
Superclass
 
typedef
TTrainingSampleList::ConstIterator 
TrainingSampleListIteratorType
 
typedef
TTrainingSampleList::Pointer 
TrainingSampleListPointer
 
typedef TTrainingSampleList TrainingSampleListType
 
typedef
TTrainingSampleList::ValueType 
TrainingSampleListValueType
 
- Public Types inherited from otb::SVMModelEstimator< TInputSampleList::MeasurementType, TTrainingSampleList::MeasurementType >
typedef itk::SmartPointer
< const Self
ConstPointer
 
typedef SVMModel
< TInputSampleList::MeasurementType,
TTrainingSampleList::MeasurementType > 
ModelType
 
typedef itk::SmartPointer< SelfPointer
 
typedef SVMModelEstimator Self
 
typedef itk::ProcessObject Superclass
 
typedef SVMModelType::Pointer SVMModelPointer
 
typedef SVMModel
< TInputSampleList::MeasurementType,
TTrainingSampleList::MeasurementType > 
SVMModelType
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
const InputSampleListTypeGetInputSampleList ()
 
virtual const char * GetNameOfClass () const
 
const TrainingSampleListTypeGetTrainingSampleList ()
 
void SetInputSampleList (const InputSampleListType *inputSampleList)
 
void SetTrainingSampleList (const TrainingSampleListType *trainingSampleList)
 
- Public Member Functions inherited from otb::SVMModelEstimator< TInputSampleList::MeasurementType, TTrainingSampleList::MeasurementType >
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
void DoProbabilityEstimates (bool prob)
 
void DoShrinking (bool s)
 
double GetC (void)
 
int GetCacheSize (void)
 
virtual unsigned int GetCoarseOptimizationNumberOfSteps ()
 
bool GetDoProbabilityEstimates (void)
 
bool GetDoShrinking (void)
 
double GetEpsilon (void)
 
virtual double GetFinalCrossValidationAccuracy ()
 
virtual unsigned int GetFineOptimizationNumberOfSteps ()
 
virtual double GetInitialCrossValidationAccuracy ()
 
double GetKernelCoef0 (void)
 
virtual GenericKernelFunctorBase * GetKernelFunctor (void) const
 
double GetKernelGamma (void)
 
int GetKernelType (void)
 
ModelTypeGetModel ()
 
const ModelTypeGetModel () const
 
double GetNu (void)
 
unsigned int GetNumberOfClasses ()
 
virtual unsigned int GetNumberOfCrossValidationFolders ()
 
double GetP (void)
 
virtual bool GetParametersOptimization ()
 
int GetPolynomialKernelDegree (void)
 
int GetSVMType (void)
 
virtual void ParametersOptimizationOff ()
 
virtual void ParametersOptimizationOn ()
 
virtual void SaveModel (const char *fname)
 
virtual void SaveModel (const std::string &fname)
 
void SetC (double c)
 
void SetCacheSize (int cSize)
 
virtual void SetCoarseOptimizationNumberOfSteps (unsigned int _arg)
 
void SetEpsilon (double eps)
 
virtual void SetFineOptimizationNumberOfSteps (unsigned int _arg)
 
void SetKernelCoef0 (double coef0)
 
virtual void SetKernelFunctor (GenericKernelFunctorBase *pGenericKernelFunctor)
 
void SetKernelGamma (double gamma)
 
void SetKernelType (int kerneltype)
 
void SetNu (double nu)
 
virtual void SetNumberOfCrossValidationFolders (unsigned int _arg)
 
void SetP (double p)
 
virtual void SetParametersOptimization (bool _arg)
 
void SetPolynomialKernelDegree (int degree)
 
void SetSVMType (int svmtype)
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from otb::SVMModelEstimator< TInputSampleList::MeasurementType, TTrainingSampleList::MeasurementType >
static Pointer New ()
 

Protected Member Functions

 SVMSampleListModelEstimator ()
 
virtual ~SVMSampleListModelEstimator ()
 
virtual void PrepareData ()
 
virtual void PrintSelf (std::ostream &os, itk::Indent indent) const
 
- Protected Member Functions inherited from otb::SVMModelEstimator< TInputSampleList::MeasurementType, TTrainingSampleList::MeasurementType >
 SVMModelEstimator ()
 
virtual ~SVMModelEstimator ()
 
void GenerateData ()
 
void OptimizeParameters ()
 

Private Member Functions

 SVMSampleListModelEstimator (const Self &)
 
void operator= (const Self &)
 

Private Attributes

InputSampleListPointer m_InputSampleList
 
TrainingSampleListPointer m_TrainingSampleList
 

Additional Inherited Members

- Protected Attributes inherited from otb::SVMModelEstimator< TInputSampleList::MeasurementType, TTrainingSampleList::MeasurementType >
unsigned int m_NumberOfClasses
 

Detailed Description

template<class TInputSampleList, class TTrainingSampleList, class TMeasurementFunctor = Functor::VectorToMeasurementVectorFunctor<typename TInputSampleList::MeasurementVectorType>>
class otb::SVMSampleListModelEstimator< TInputSampleList, TTrainingSampleList, TMeasurementFunctor >

Class for SVM model estimation from SampleLists used for classification.

The basic functionality of the SVMSampleListModelEstimator is to generate the models used in SVM classification. It requires one input poinset and a training pointset to be provided by the user. This object supports data handling of multiband data. The object accepts the input image as a VectorImage only, where each pixel is a vector and each element of the vector corresponds to an entry from 1 particular band of a multiband dataset. A single band data set is treated as a vector with a single element for every vector. The classified data is treated as a single band scalar data.

Deprecated:
See Also
MachineLearningModel
LibSVMMachineLearningModel
ImageClassificationFilter

Definition at line 112 of file otbSVMSampleListModelEstimator.h.

Member Typedef Documentation

template<class TInputSampleList , class TTrainingSampleList , class TMeasurementFunctor = Functor::VectorToMeasurementVectorFunctor<typename TInputSampleList::MeasurementVectorType>>
typedef itk::SmartPointer<const Self> otb::SVMSampleListModelEstimator< TInputSampleList, TTrainingSampleList, TMeasurementFunctor >::ConstPointer

Definition at line 123 of file otbSVMSampleListModelEstimator.h.

template<class TInputSampleList , class TTrainingSampleList , class TMeasurementFunctor = Functor::VectorToMeasurementVectorFunctor<typename TInputSampleList::MeasurementVectorType>>
typedef TInputSampleList::ConstIterator otb::SVMSampleListModelEstimator< TInputSampleList, TTrainingSampleList, TMeasurementFunctor >::InputSampleListIteratorType

Type definitions for the iterators for the input and training images.

Definition at line 149 of file otbSVMSampleListModelEstimator.h.

template<class TInputSampleList , class TTrainingSampleList , class TMeasurementFunctor = Functor::VectorToMeasurementVectorFunctor<typename TInputSampleList::MeasurementVectorType>>
typedef TInputSampleList::Pointer otb::SVMSampleListModelEstimator< TInputSampleList, TTrainingSampleList, TMeasurementFunctor >::InputSampleListPointer

Definition at line 133 of file otbSVMSampleListModelEstimator.h.

template<class TInputSampleList , class TTrainingSampleList , class TMeasurementFunctor = Functor::VectorToMeasurementVectorFunctor<typename TInputSampleList::MeasurementVectorType>>
typedef TInputSampleList otb::SVMSampleListModelEstimator< TInputSampleList, TTrainingSampleList, TMeasurementFunctor >::InputSampleListType

Type definition for the input image.

Definition at line 129 of file otbSVMSampleListModelEstimator.h.

template<class TInputSampleList , class TTrainingSampleList , class TMeasurementFunctor = Functor::VectorToMeasurementVectorFunctor<typename TInputSampleList::MeasurementVectorType>>
typedef TInputSampleList::ValueType otb::SVMSampleListModelEstimator< TInputSampleList, TTrainingSampleList, TMeasurementFunctor >::InputSampleListValueType

Type definition for the vector associated with input image pixel type.

Definition at line 141 of file otbSVMSampleListModelEstimator.h.

template<class TInputSampleList , class TTrainingSampleList , class TMeasurementFunctor = Functor::VectorToMeasurementVectorFunctor<typename TInputSampleList::MeasurementVectorType>>
typedef TMeasurementFunctor otb::SVMSampleListModelEstimator< TInputSampleList, TTrainingSampleList, TMeasurementFunctor >::MeasurementFunctorType

Measurement functor typedef

Definition at line 154 of file otbSVMSampleListModelEstimator.h.

template<class TInputSampleList , class TTrainingSampleList , class TMeasurementFunctor = Functor::VectorToMeasurementVectorFunctor<typename TInputSampleList::MeasurementVectorType>>
typedef itk::SmartPointer<Self> otb::SVMSampleListModelEstimator< TInputSampleList, TTrainingSampleList, TMeasurementFunctor >::Pointer

Definition at line 122 of file otbSVMSampleListModelEstimator.h.

template<class TInputSampleList , class TTrainingSampleList , class TMeasurementFunctor = Functor::VectorToMeasurementVectorFunctor<typename TInputSampleList::MeasurementVectorType>>
typedef SVMSampleListModelEstimator otb::SVMSampleListModelEstimator< TInputSampleList, TTrainingSampleList, TMeasurementFunctor >::Self

Standard class typedefs.

Definition at line 117 of file otbSVMSampleListModelEstimator.h.

template<class TInputSampleList , class TTrainingSampleList , class TMeasurementFunctor = Functor::VectorToMeasurementVectorFunctor<typename TInputSampleList::MeasurementVectorType>>
typedef SVMModelEstimator<typename TInputSampleList::MeasurementType, typename TTrainingSampleList::MeasurementType> otb::SVMSampleListModelEstimator< TInputSampleList, TTrainingSampleList, TMeasurementFunctor >::Superclass

Definition at line 120 of file otbSVMSampleListModelEstimator.h.

template<class TInputSampleList , class TTrainingSampleList , class TMeasurementFunctor = Functor::VectorToMeasurementVectorFunctor<typename TInputSampleList::MeasurementVectorType>>
typedef TTrainingSampleList::ConstIterator otb::SVMSampleListModelEstimator< TInputSampleList, TTrainingSampleList, TMeasurementFunctor >::TrainingSampleListIteratorType

Definition at line 151 of file otbSVMSampleListModelEstimator.h.

template<class TInputSampleList , class TTrainingSampleList , class TMeasurementFunctor = Functor::VectorToMeasurementVectorFunctor<typename TInputSampleList::MeasurementVectorType>>
typedef TTrainingSampleList::Pointer otb::SVMSampleListModelEstimator< TInputSampleList, TTrainingSampleList, TMeasurementFunctor >::TrainingSampleListPointer

Definition at line 137 of file otbSVMSampleListModelEstimator.h.

template<class TInputSampleList , class TTrainingSampleList , class TMeasurementFunctor = Functor::VectorToMeasurementVectorFunctor<typename TInputSampleList::MeasurementVectorType>>
typedef TTrainingSampleList otb::SVMSampleListModelEstimator< TInputSampleList, TTrainingSampleList, TMeasurementFunctor >::TrainingSampleListType

Type definitions for the training image.

Definition at line 136 of file otbSVMSampleListModelEstimator.h.

template<class TInputSampleList , class TTrainingSampleList , class TMeasurementFunctor = Functor::VectorToMeasurementVectorFunctor<typename TInputSampleList::MeasurementVectorType>>
typedef TTrainingSampleList::ValueType otb::SVMSampleListModelEstimator< TInputSampleList, TTrainingSampleList, TMeasurementFunctor >::TrainingSampleListValueType

Type definitions for the vector holding training image pixel type.

Definition at line 145 of file otbSVMSampleListModelEstimator.h.

Constructor & Destructor Documentation

template<class TInputSampleList , class TTrainingSampleList , class TMeasurementFunctor >
otb::SVMSampleListModelEstimator< TInputSampleList, TTrainingSampleList, TMeasurementFunctor >::SVMSampleListModelEstimator ( void  )
protected

Constructor

Definition at line 31 of file otbSVMSampleListModelEstimator.txx.

template<class TInputSampleList , class TTrainingSampleList , class TMeasurementFunctor >
otb::SVMSampleListModelEstimator< TInputSampleList, TTrainingSampleList, TMeasurementFunctor >::~SVMSampleListModelEstimator ( void  )
protectedvirtual

Destructor

Definition at line 40 of file otbSVMSampleListModelEstimator.txx.

template<class TInputSampleList , class TTrainingSampleList , class TMeasurementFunctor = Functor::VectorToMeasurementVectorFunctor<typename TInputSampleList::MeasurementVectorType>>
otb::SVMSampleListModelEstimator< TInputSampleList, TTrainingSampleList, TMeasurementFunctor >::SVMSampleListModelEstimator ( const Self )
private

Member Function Documentation

template<class TInputSampleList , class TTrainingSampleList , class TMeasurementFunctor = Functor::VectorToMeasurementVectorFunctor<typename TInputSampleList::MeasurementVectorType>>
virtual::itk::LightObject::Pointer otb::SVMSampleListModelEstimator< TInputSampleList, TTrainingSampleList, TMeasurementFunctor >::CreateAnother ( void  ) const
template<class TInputSampleList , class TTrainingSampleList , class TMeasurementFunctor >
const SVMSampleListModelEstimator< TInputSampleList, TTrainingSampleList, TMeasurementFunctor >::InputSampleListType * otb::SVMSampleListModelEstimator< TInputSampleList, TTrainingSampleList, TMeasurementFunctor >::GetInputSampleList ( )

Get the input image.

Definition at line 78 of file otbSVMSampleListModelEstimator.txx.

template<class TInputSampleList , class TTrainingSampleList , class TMeasurementFunctor = Functor::VectorToMeasurementVectorFunctor<typename TInputSampleList::MeasurementVectorType>>
virtual const char* otb::SVMSampleListModelEstimator< TInputSampleList, TTrainingSampleList, TMeasurementFunctor >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from otb::SVMModelEstimator< TInputSampleList::MeasurementType, TTrainingSampleList::MeasurementType >.

template<class TInputSampleList , class TTrainingSampleList , class TMeasurementFunctor >
const SVMSampleListModelEstimator< TInputSampleList, TTrainingSampleList, TMeasurementFunctor >::TrainingSampleListType * otb::SVMSampleListModelEstimator< TInputSampleList, TTrainingSampleList, TMeasurementFunctor >::GetTrainingSampleList ( )

Get the training image.

Definition at line 97 of file otbSVMSampleListModelEstimator.txx.

template<class TInputSampleList , class TTrainingSampleList , class TMeasurementFunctor = Functor::VectorToMeasurementVectorFunctor<typename TInputSampleList::MeasurementVectorType>>
static Pointer otb::SVMSampleListModelEstimator< TInputSampleList, TTrainingSampleList, TMeasurementFunctor >::New ( )
static

Method for creation through the object factory.

template<class TInputSampleList , class TTrainingSampleList , class TMeasurementFunctor = Functor::VectorToMeasurementVectorFunctor<typename TInputSampleList::MeasurementVectorType>>
void otb::SVMSampleListModelEstimator< TInputSampleList, TTrainingSampleList, TMeasurementFunctor >::operator= ( const Self )
private
template<class TInputSampleList , class TTrainingSampleList , class TMeasurementFunctor >
void otb::SVMSampleListModelEstimator< TInputSampleList, TTrainingSampleList, TMeasurementFunctor >::PrepareData ( )
protectedvirtual
template<class TInputSampleList , class TTrainingSampleList , class TMeasurementFunctor >
void otb::SVMSampleListModelEstimator< TInputSampleList, TTrainingSampleList, TMeasurementFunctor >::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
protectedvirtual
template<class TInputSampleList , class TTrainingSampleList , class TMeasurementFunctor >
void otb::SVMSampleListModelEstimator< TInputSampleList, TTrainingSampleList, TMeasurementFunctor >::SetInputSampleList ( const InputSampleListType inputSampleList)

Set the input image.

Definition at line 49 of file otbSVMSampleListModelEstimator.txx.

template<class TInputSampleList , class TTrainingSampleList , class TMeasurementFunctor >
void otb::SVMSampleListModelEstimator< TInputSampleList, TTrainingSampleList, TMeasurementFunctor >::SetTrainingSampleList ( const TrainingSampleListType trainingSampleList)

Set the training image.

Definition at line 63 of file otbSVMSampleListModelEstimator.txx.

Member Data Documentation

template<class TInputSampleList , class TTrainingSampleList , class TMeasurementFunctor = Functor::VectorToMeasurementVectorFunctor<typename TInputSampleList::MeasurementVectorType>>
InputSampleListPointer otb::SVMSampleListModelEstimator< TInputSampleList, TTrainingSampleList, TMeasurementFunctor >::m_InputSampleList
private

Definition at line 188 of file otbSVMSampleListModelEstimator.h.

template<class TInputSampleList , class TTrainingSampleList , class TMeasurementFunctor = Functor::VectorToMeasurementVectorFunctor<typename TInputSampleList::MeasurementVectorType>>
TrainingSampleListPointer otb::SVMSampleListModelEstimator< TInputSampleList, TTrainingSampleList, TMeasurementFunctor >::m_TrainingSampleList
private

Definition at line 187 of file otbSVMSampleListModelEstimator.h.


The documentation for this class was generated from the following files: