OTB  6.7.0
Orfeo Toolbox
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | 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 Self
ConstPointer
 
typedef std::pair< unsigned
int, double > 
IndexAndDistanceType
 
typedef std::vector
< IndexAndDistanceType
IndexAndDistanceVectorType
 
typedef std::vector< unsigned int > IndexVectorType
 
typedef TSample::MeasurementType MeasurementType
 
typedef
TSample::MeasurementVectorType 
MeasurementVectorType
 
typedef
Superclass::MembershipSampleType 
OutputType
 
typedef itk::SmartPointer< SelfPointer
 
typedef SVMMarginSampler Self
 
typedef
itk::Statistics::SampleClassifierFilter
< TSample > 
Superclass
 
typedef SVMModelType::Pointer SVMModelPointer
 
typedef TModel SVMModelType
 
- Public Types inherited from itk::Statistics::SampleClassifierFilter< TSample >
typedef IdentifierType ClassLabelType
 
typedef
ClassLabelVectorObjectType::Pointer 
ClassLabelVectorObjectPointer
 
typedef
SimpleDataObjectDecorator
< ClassLabelVectorType
ClassLabelVectorObjectType
 
typedef std::vector
< ClassLabelType
ClassLabelVectorType
 
typedef SmartPointer< const SelfConstPointer
 
typedef
DecisionRuleType::ConstPointer 
DecisionRulePointer
 
typedef DecisionRule DecisionRuleType
 
typedef SampleType::MeasurementType MeasurementType
 
typedef
SampleType::MeasurementVectorType 
MeasurementVectorType
 
typedef
MembershipFunctionType::ConstPointer 
MembershipFunctionPointer
 
typedef
SimpleDataObjectDecorator
< MembershipFunctionsWeightsArrayType
MembershipFunctionsWeightsArrayObjectType
 
typedef
MembershipFunctionsWeightsArrayObjectType::Pointer 
MembershipFunctionsWeightsArrayPointer
 
typedef Array< double > MembershipFunctionsWeightsArrayType
 
typedef MembershipFunctionBase
< MeasurementVectorType
MembershipFunctionType
 
typedef
MembershipFunctionVectorObjectType::Pointer 
MembershipFunctionVectorObjectPointer
 
typedef
SimpleDataObjectDecorator
< MembershipFunctionVectorType
MembershipFunctionVectorObjectType
 
typedef std::vector
< MembershipFunctionPointer
MembershipFunctionVectorType
 
typedef
MembershipSampleType::Pointer 
MembershipSampleObjectPointer
 
typedef MembershipSample
< SampleType
MembershipSampleType
 
typedef SmartPointer< SelfPointer
 
typedef TSample SampleType
 
typedef SampleClassifierFilter Self
 
typedef ProcessObject Superclass
 
- Public Types inherited from itk::ProcessObject
typedef SmartPointer< const SelfConstPointer
 
typedef
DataObject::DataObjectIdentifierType 
DataObjectIdentifierType
 
typedef DataObject::Pointer DataObjectPointer
 
typedef std::vector
< DataObjectPointer
DataObjectPointerArray
 
typedef
DataObjectPointerArray::size_type 
DataObjectPointerArraySizeType
 
typedef std::vector
< DataObjectIdentifierType
NameArray
 
typedef SmartPointer< SelfPointer
 
typedef ProcessObject Self
 
typedef Object Superclass
 
- Public Types inherited from itk::Object
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef Object Self
 
typedef LightObject Superclass
 
- Public Types inherited from itk::LightObject
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef LightObject Self
 

Public Member Functions

const IndexVectorTypeGetMarginSamples ()
 
virtual unsigned int GetNumberOfCandidates ()
 
 itkGetObjectMacro (Model, SVMModelType)
 
virtual void SetModel (SVMModelType *_arg)
 
virtual void SetNumberOfCandidates (unsigned int _arg)
 
- Public Member Functions inherited from itk::Statistics::SampleClassifierFilter< TSample >
virtual ::itk::LightObject::Pointer CreateAnother () const
 
virtual const DecisionRuleTypeGetDecisionRule () const
 
const SampleTypeGetInput () const
 
virtual unsigned int GetNumberOfClasses () const
 
const MembershipSampleTypeGetOutput () const
 
void SetClassLabels (const ClassLabelVectorObjectType *classLabels)
 
virtual void SetDecisionRule (const DecisionRuleType *_arg)
 
void SetInput (const SampleType *sample)
 
void SetMembershipFunctions (const MembershipFunctionVectorObjectType *membershipFunctions)
 
void SetMembershipFunctionsWeightsArray (const MembershipFunctionsWeightsArrayObjectType *weightsArray)
 
virtual void SetNumberOfClasses (unsigned int _arg)
 
- Public Member Functions inherited from itk::ProcessObject
virtual void AbortGenerateDataOff ()
 
virtual void AbortGenerateDataOn ()
 
virtual void EnlargeOutputRequestedRegion (DataObject *)
 
virtual const bool & GetAbortGenerateData () const
 
DataObjectPointerArray GetIndexedInputs ()
 
DataObjectPointerArray GetIndexedOutputs ()
 
NameArray GetInputNames () const
 
DataObjectPointerArray GetInputs ()
 
MultiThreader * GetMultiThreader () const
 
DataObjectPointerArraySizeType GetNumberOfIndexedInputs () const
 
DataObjectPointerArraySizeType GetNumberOfIndexedOutputs () const
 
DataObjectPointerArraySizeType GetNumberOfInputs () const
 
DataObjectPointerArraySizeType GetNumberOfOutputs () const
 
virtual const ThreadIdTypeGetNumberOfThreads () const
 
virtual
DataObjectPointerArraySizeType 
GetNumberOfValidRequiredInputs () const
 
NameArray GetOutputNames () const
 
DataObjectPointerArray GetOutputs ()
 
virtual const float & GetProgress () const
 
virtual const bool & GetReleaseDataBeforeUpdateFlag () const
 
virtual bool GetReleaseDataFlag () const
 
NameArray GetRequiredInputNames () const
 
bool HasInput (const DataObjectIdentifierType &key) const
 
bool HasOutput (const DataObjectIdentifierType &key) const
 
virtual DataObjectPointer MakeOutput (const DataObjectIdentifierType &)
 
virtual void PrepareOutputs ()
 
virtual void PropagateRequestedRegion (DataObject *output)
 
virtual void ReleaseDataBeforeUpdateFlagOff ()
 
virtual void ReleaseDataBeforeUpdateFlagOn ()
 
void ReleaseDataFlagOff ()
 
void ReleaseDataFlagOn ()
 
virtual void ResetPipeline ()
 
virtual void SetAbortGenerateData (bool _arg)
 
virtual void SetNumberOfThreads (ThreadIdType _arg)
 
void SetProgress (float progress)
 
virtual void SetReleaseDataBeforeUpdateFlag (bool _arg)
 
virtual void SetReleaseDataFlag (bool flag)
 
virtual void Update ()
 
virtual void UpdateLargestPossibleRegion ()
 
virtual void UpdateOutputData (DataObject *output)
 
virtual void UpdateOutputInformation ()
 
void UpdateProgress (float progress)
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *)
 
unsigned long AddObserver (const EventObject &event, Command *) const
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
CommandGetCommand (unsigned long tag)
 
bool GetDebug () const
 
const MetaDataDictionaryGetMetaDataDictionary () const
 
MetaDataDictionaryGetMetaDataDictionary ()
 
virtual ModifiedTimeType GetMTime () const
 
virtual const std::string & GetObjectName () const
 
virtual const TimeStampGetTimeStamp () const
 
bool HasObserver (const EventObject &event) const
 
void InvokeEvent (const EventObject &)
 
void InvokeEvent (const EventObject &) const
 
virtual void Modified () const
 
virtual void Register () const override
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag)
 
void SetDebug (bool debugFlag) const
 
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
 
virtual void SetObjectName (std::string _arg)
 
virtual void SetReferenceCount (int) override
 
virtual void UnRegister () const noexceptoverride
 
- Public Member Functions inherited from itk::LightObject
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
 itkCloneMacro (Self)
 
void Print (std::ostream &os, Indent indent=0) const
 

Static Public Member Functions

static bool Compare (const IndexAndDistanceType &l1, const IndexAndDistanceType &l2)
 
- Static Public Member Functions inherited from itk::Statistics::SampleClassifierFilter< TSample >
static Pointer New ()
 
- Static Public Member Functions inherited from itk::Object
static bool GetGlobalWarningDisplay ()
 
static void GlobalWarningDisplayOff ()
 
static void GlobalWarningDisplayOn ()
 
static Pointer New ()
 
static void SetGlobalWarningDisplay (bool flag)
 
- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
 
static Pointer New ()
 

Protected Member Functions

void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
 SVMMarginSampler ()
 
 ~SVMMarginSampler () override
 
void GenerateData () override
 
virtual void DoMarginSampling ()
 
- Protected Member Functions inherited from itk::Statistics::SampleClassifierFilter< TSample >
virtual DataObjectPointer MakeOutput (DataObjectPointerArraySizeType idx) override
 
void operator= (const Self &) ITK_DELETE_FUNCTION
 
 SampleClassifierFilter ()
 
 SampleClassifierFilter (const Self &) ITK_DELETE_FUNCTION
 
virtual ~SampleClassifierFilter ()
 
- Protected Member Functions inherited from itk::ProcessObject
virtual void AddInput (DataObject *input)
 
virtual void AddOutput (DataObject *output)
 
bool AddRequiredInputName (const DataObjectIdentifierType &, DataObjectPointerArraySizeType idx)
 
bool AddRequiredInputName (const DataObjectIdentifierType &)
 
virtual void CacheInputReleaseDataFlags ()
 
virtual void GenerateInputRequestedRegion ()
 
virtual void GenerateOutputInformation ()
 
virtual void GenerateOutputRequestedRegion (DataObject *output)
 
const DataObjectGetInput (const DataObjectIdentifierType &key) const
 
DataObjectGetInput (DataObjectPointerArraySizeType idx)
 
const DataObjectGetInput (DataObjectPointerArraySizeType idx) const
 
DataObjectGetInput (const DataObjectIdentifierType &key)
 
virtual const
DataObjectPointerArraySizeType
GetNumberOfRequiredInputs () const
 
virtual const
DataObjectPointerArraySizeType
GetNumberOfRequiredOutputs () const
 
DataObjectGetOutput (const DataObjectIdentifierType &key)
 
const DataObjectGetOutput (const DataObjectIdentifierType &key) const
 
DataObjectGetOutput (DataObjectPointerArraySizeType idx)
 
const DataObjectGetOutput (DataObjectPointerArraySizeType idx) const
 
DataObjectGetPrimaryInput ()
 
const DataObjectGetPrimaryInput () const
 
virtual const char * GetPrimaryInputName (void) const
 
DataObjectGetPrimaryOutput ()
 
const DataObjectGetPrimaryOutput () const
 
virtual const char * GetPrimaryOutputName (void) const
 
bool IsIndexedInputName (const DataObjectIdentifierType &) const
 
bool IsIndexedOutputName (const DataObjectIdentifierType &) const
 
bool IsRequiredInputName (const DataObjectIdentifierType &) const
 
 itkLegacyMacro (virtual void RemoveInput(DataObject *input))
 
 itkLegacyMacro (void SetNumberOfInputs(DataObjectPointerArraySizeType num))
 
 itkLegacyMacro (virtual void RemoveOutput(DataObject *output))
 
 itkLegacyMacro (void SetNumberOfOutputs(DataObjectPointerArraySizeType num))
 
DataObjectPointerArraySizeType MakeIndexFromInputName (const DataObjectIdentifierType &name) const
 
DataObjectPointerArraySizeType MakeIndexFromOutputName (const DataObjectIdentifierType &name) const
 
DataObjectIdentifierType MakeNameFromInputIndex (DataObjectPointerArraySizeType idx) const
 
DataObjectIdentifierType MakeNameFromOutputIndex (DataObjectPointerArraySizeType idx) const
 
virtual void PopBackInput ()
 
virtual void PopFrontInput ()
 
 ProcessObject ()
 
virtual void PropagateResetPipeline ()
 
virtual void PushBackInput (const DataObject *input)
 
virtual void PushFrontInput (const DataObject *input)
 
virtual void ReleaseInputs ()
 
virtual void RemoveInput (const DataObjectIdentifierType &key)
 
virtual void RemoveInput (DataObjectPointerArraySizeType)
 
virtual void RemoveOutput (const DataObjectIdentifierType &key)
 
virtual void RemoveOutput (DataObjectPointerArraySizeType idx)
 
bool RemoveRequiredInputName (const DataObjectIdentifierType &)
 
virtual void RestoreInputReleaseDataFlags ()
 
virtual void SetInput (const DataObjectIdentifierType &key, DataObject *input)
 
virtual void SetNthInput (DataObjectPointerArraySizeType num, DataObject *input)
 
virtual void SetNthOutput (DataObjectPointerArraySizeType num, DataObject *output)
 
void SetNumberOfIndexedInputs (DataObjectPointerArraySizeType num)
 
void SetNumberOfIndexedOutputs (DataObjectPointerArraySizeType num)
 
virtual void SetNumberOfRequiredInputs (DataObjectPointerArraySizeType)
 
virtual void SetNumberOfRequiredOutputs (DataObjectPointerArraySizeType _arg)
 
virtual void SetOutput (const DataObjectIdentifierType &key, DataObject *output)
 
virtual void SetPrimaryInput (DataObject *input)
 
virtual void SetPrimaryInputName (const DataObjectIdentifierType &key)
 
virtual void SetPrimaryOutput (DataObject *output)
 
virtual void SetPrimaryOutputName (const DataObjectIdentifierType &key)
 
void SetRequiredInputNames (const NameArray &)
 
virtual void VerifyInputInformation ()
 
virtual void VerifyPreconditions ()
 
 ~ProcessObject ()
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void SetTimeStamp (const TimeStamp &time)
 
virtual ~Object ()
 
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 
 LightObject ()
 
virtual void PrintHeader (std::ostream &os, Indent indent) const
 
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 

Private Attributes

IndexVectorType m_MarginSamples
 
SVMModelPointer m_Model
 
unsigned int m_NumberOfCandidates
 
virtual const char * GetNameOfClass () const
 
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
static Pointer New ()
 

Additional Inherited Members

- Protected Types inherited from itk::Statistics::SampleClassifierFilter< TSample >
typedef
ProcessObject::DataObjectPointerArraySizeType 
DataObjectPointerArraySizeType
 
- Protected Attributes inherited from itk::ProcessObject
TimeStamp m_OutputInformationMTime
 
bool m_Updating
 
- Protected Attributes inherited from itk::LightObject
AtomicInt< int > m_ReferenceCount
 

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

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

Definition at line 46 of file otbSVMMarginSampler.h.

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

Definition at line 59 of file otbSVMMarginSampler.h.

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

Definition at line 60 of file otbSVMMarginSampler.h.

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

Definition at line 61 of file otbSVMMarginSampler.h.

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

typedefs from TSample object

Definition at line 57 of file otbSVMMarginSampler.h.

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

Definition at line 58 of file otbSVMMarginSampler.h.

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

Output type for GetClassSample method

Definition at line 50 of file otbSVMMarginSampler.h.

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

Definition at line 45 of file otbSVMMarginSampler.h.

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

Standard class typedef

Definition at line 43 of file otbSVMMarginSampler.h.

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

Definition at line 44 of file otbSVMMarginSampler.h.

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

Definition at line 72 of file otbSVMMarginSampler.h.

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

Type definitions for the SVM Model.

Definition at line 71 of file otbSVMMarginSampler.h.

Constructor & Destructor Documentation

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

Definition at line 32 of file otbSVMMarginSampler.hxx.

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

Definition at line 90 of file otbSVMMarginSampler.h.

Member Function Documentation

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

Definition at line 64 of file otbSVMMarginSampler.h.

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

Standard macros

Reimplemented from itk::Object.

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

Starts the classification process

Definition at line 69 of file otbSVMMarginSampler.hxx.

References otbMsgDevMacro.

template<class TSample , class TModel >
void otb::SVMMarginSampler< TSample, TModel >::GenerateData ( void  )
overrideprotectedvirtual

Starts the classification process

Reimplemented from itk::Statistics::SampleClassifierFilter< TSample >.

Definition at line 48 of file otbSVMMarginSampler.hxx.

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

Definition at line 83 of file otbSVMMarginSampler.h.

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

Standard macros

Reimplemented from itk::Statistics::SampleClassifierFilter< TSample >.

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

Get the number of classes.

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

Standard macros

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

Reimplemented from itk::Statistics::SampleClassifierFilter< TSample >.

Definition at line 40 of file otbSVMMarginSampler.hxx.

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

Set the model

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

Member Data Documentation

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

Definition at line 104 of file otbSVMMarginSampler.h.

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

Definition at line 100 of file otbSVMMarginSampler.h.

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

Definition at line 102 of file otbSVMMarginSampler.h.


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