OTB  9.0.0
Orfeo Toolbox
Public Types | List of all members
otb::SVMMarginSampler< TSample, TModel > Class Template Reference

#include <otbSVMMarginSampler.h>

+ Inheritance diagram for otb::SVMMarginSampler< TSample, TModel >:
+ Collaboration diagram for otb::SVMMarginSampler< TSample, TModel >:

Public Types

typedef itk::SmartPointer< const SelfConstPointer
 
typedef itk::SmartPointer< SelfPointer
 
typedef SVMMarginSampler Self
 
typedef itk::Statistics::SampleClassifierFilter< TSample > Superclass
 
typedef Superclass::MembershipSampleType OutputType
 
typedef TSample::MeasurementType MeasurementType
 
typedef TSample::MeasurementVectorType MeasurementVectorType
 
typedef std::pair< unsigned int, double > IndexAndDistanceType
 
typedef std::vector< IndexAndDistanceTypeIndexAndDistanceVectorType
 
typedef std::vector< unsigned int > IndexVectorType
 
typedef TModel SVMModelType
 
typedef SVMModelType::Pointer SVMModelPointer
 
SVMModelPointer m_Model
 
unsigned int m_NumberOfCandidates
 
IndexVectorType m_MarginSamples
 
virtual const char * GetNameOfClass () const
 
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual void SetNumberOfCandidates (unsigned int _arg)
 
virtual unsigned int GetNumberOfCandidates ()
 
virtual void SetModel (SVMModelType *_arg)
 
 itkGetObjectMacro (Model, SVMModelType)
 
const IndexVectorTypeGetMarginSamples ()
 
static Pointer New ()
 
static bool Compare (const IndexAndDistanceType &l1, const IndexAndDistanceType &l2)
 
 SVMMarginSampler ()
 
 ~SVMMarginSampler () override
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
void GenerateData () override
 
virtual void DoMarginSampling ()
 

Detailed Description

template<class TSample, class TModel>
class otb::SVMMarginSampler< TSample, TModel >

Implement one iteration of active learning by margin.

Definition at line 38 of file otbSVMMarginSampler.h.

Member Typedef Documentation

◆ ConstPointer

template<class TSample , class TModel >
typedef itk::SmartPointer<const Self> otb::SVMMarginSampler< TSample, TModel >::ConstPointer

Definition at line 45 of file otbSVMMarginSampler.h.

◆ IndexAndDistanceType

template<class TSample , class TModel >
typedef std::pair<unsigned int, double> otb::SVMMarginSampler< TSample, TModel >::IndexAndDistanceType

Output type for GetClassSample method

Definition at line 58 of file otbSVMMarginSampler.h.

◆ IndexAndDistanceVectorType

template<class TSample , class TModel >
typedef std::vector<IndexAndDistanceType> otb::SVMMarginSampler< TSample, TModel >::IndexAndDistanceVectorType

Output type for GetClassSample method

Definition at line 59 of file otbSVMMarginSampler.h.

◆ IndexVectorType

template<class TSample , class TModel >
typedef std::vector<unsigned int> otb::SVMMarginSampler< TSample, TModel >::IndexVectorType

Output type for GetClassSample method

Definition at line 60 of file otbSVMMarginSampler.h.

◆ MeasurementType

template<class TSample , class TModel >
typedef TSample::MeasurementType otb::SVMMarginSampler< TSample, TModel >::MeasurementType

typedefs from TSample object

Definition at line 56 of file otbSVMMarginSampler.h.

◆ MeasurementVectorType

template<class TSample , class TModel >
typedef TSample::MeasurementVectorType otb::SVMMarginSampler< TSample, TModel >::MeasurementVectorType

Output type for GetClassSample method

Definition at line 57 of file otbSVMMarginSampler.h.

◆ OutputType

template<class TSample , class TModel >
typedef Superclass::MembershipSampleType otb::SVMMarginSampler< TSample, TModel >::OutputType

Output type for GetClassSample method

Definition at line 49 of file otbSVMMarginSampler.h.

◆ Pointer

template<class TSample , class TModel >
typedef itk::SmartPointer<Self> otb::SVMMarginSampler< TSample, TModel >::Pointer

Definition at line 44 of file otbSVMMarginSampler.h.

◆ Self

template<class TSample , class TModel >
typedef SVMMarginSampler otb::SVMMarginSampler< TSample, TModel >::Self

Standard class typedef

Definition at line 42 of file otbSVMMarginSampler.h.

◆ Superclass

template<class TSample , class TModel >
typedef itk::Statistics::SampleClassifierFilter<TSample> otb::SVMMarginSampler< TSample, TModel >::Superclass

Definition at line 43 of file otbSVMMarginSampler.h.

◆ SVMModelPointer

template<class TSample , class TModel >
typedef SVMModelType::Pointer otb::SVMMarginSampler< TSample, TModel >::SVMModelPointer

Output type for GetClassSample method

Definition at line 71 of file otbSVMMarginSampler.h.

◆ SVMModelType

template<class TSample , class TModel >
typedef TModel otb::SVMMarginSampler< TSample, TModel >::SVMModelType

Type definitions for the SVM Model.

Definition at line 70 of file otbSVMMarginSampler.h.

Constructor & Destructor Documentation

◆ SVMMarginSampler()

template<class TSample , class TModel >
otb::SVMMarginSampler< TSample, TModel >::SVMMarginSampler
protected

Output type for GetClassSample method

Definition at line 31 of file otbSVMMarginSampler.hxx.

◆ ~SVMMarginSampler()

template<class TSample , class TModel >
otb::SVMMarginSampler< TSample, TModel >::~SVMMarginSampler ( )
inlineoverrideprotected

Output type for GetClassSample method

Definition at line 89 of file otbSVMMarginSampler.h.

Member Function Documentation

◆ Compare()

template<class TSample , class TModel >
static bool otb::SVMMarginSampler< TSample, TModel >::Compare ( const IndexAndDistanceType l1,
const IndexAndDistanceType l2 
)
inlinestatic

Output type for GetClassSample method

Definition at line 63 of file otbSVMMarginSampler.h.

◆ CreateAnother()

template<class TSample , class TModel >
virtual::itk::LightObject::Pointer otb::SVMMarginSampler< TSample, TModel >::CreateAnother ( void  ) const

Output type for GetClassSample method

◆ DoMarginSampling()

template<class TSample , class TModel >
void otb::SVMMarginSampler< TSample, TModel >::DoMarginSampling
protectedvirtual

Output type for GetClassSample method

Definition at line 62 of file otbSVMMarginSampler.hxx.

References otbMsgDevMacro.

◆ GenerateData()

template<class TSample , class TModel >
void otb::SVMMarginSampler< TSample, TModel >::GenerateData
overrideprotected

Starts the classification process

Definition at line 43 of file otbSVMMarginSampler.hxx.

◆ GetMarginSamples()

template<class TSample , class TModel >
const IndexVectorType& otb::SVMMarginSampler< TSample, TModel >::GetMarginSamples ( )
inline

Output type for GetClassSample method

Definition at line 82 of file otbSVMMarginSampler.h.

◆ GetNameOfClass()

template<class TSample , class TModel >
virtual const char* otb::SVMMarginSampler< TSample, TModel >::GetNameOfClass ( ) const
virtual

Standard macros

◆ GetNumberOfCandidates()

template<class TSample , class TModel >
virtual unsigned int otb::SVMMarginSampler< TSample, TModel >::GetNumberOfCandidates ( )
virtual

Output type for GetClassSample method

◆ itkGetObjectMacro()

template<class TSample , class TModel >
otb::SVMMarginSampler< TSample, TModel >::itkGetObjectMacro ( Model  ,
SVMModelType   
)

Get the number of classes.

◆ New()

template<class TSample , class TModel >
static Pointer otb::SVMMarginSampler< TSample, TModel >::New ( )
static

Output type for GetClassSample method

◆ PrintSelf()

template<class TSample , class TModel >
void otb::SVMMarginSampler< TSample, TModel >::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
overrideprotected

Output type for GetClassSample method

Definition at line 37 of file otbSVMMarginSampler.hxx.

◆ SetModel()

template<class TSample , class TModel >
virtual void otb::SVMMarginSampler< TSample, TModel >::SetModel ( SVMModelType _arg)
virtual

Set the model

◆ SetNumberOfCandidates()

template<class TSample , class TModel >
virtual void otb::SVMMarginSampler< TSample, TModel >::SetNumberOfCandidates ( unsigned int  _arg)
virtual

Output type for GetClassSample method

Member Data Documentation

◆ m_MarginSamples

template<class TSample , class TModel >
IndexVectorType otb::SVMMarginSampler< TSample, TModel >::m_MarginSamples
private

Output type for GetClassSample method

Definition at line 104 of file otbSVMMarginSampler.h.

◆ m_Model

template<class TSample , class TModel >
SVMModelPointer otb::SVMMarginSampler< TSample, TModel >::m_Model
private

Output type for GetClassSample method

Definition at line 100 of file otbSVMMarginSampler.h.

◆ m_NumberOfCandidates

template<class TSample , class TModel >
unsigned int otb::SVMMarginSampler< TSample, TModel >::m_NumberOfCandidates
private

Output type for GetClassSample method

Definition at line 102 of file otbSVMMarginSampler.h.


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