OTB  6.7.0
Orfeo Toolbox
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
otb::ListSampleGenerator< TImage, TVectorData > Class Template Reference

#include <otbListSampleGenerator.h>

+ Inheritance diagram for otb::ListSampleGenerator< TImage, TVectorData >:
+ Collaboration diagram for otb::ListSampleGenerator< TImage, TVectorData >:

Public Types

typedef int ClassLabelType
 
typedef itk::SmartPointer
< const Self
ConstPointer
 
typedef itk::DataObject::Pointer DataObjectPointer
 
typedef
itk::ProcessObject::DataObjectPointerArraySizeType 
DataObjectPointerArraySizeType
 
typedef ImageType::IndexType ImageIndexType
 
typedef ImageType::Pointer ImagePointerType
 
typedef ImageType::RegionType ImageRegionType
 
typedef TImage ImageType
 
typedef itk::FixedArray
< ClassLabelType, 1 > 
LabelType
 
typedef ListLabelType::Pointer ListLabelPointerType
 
typedef
itk::Statistics::ListSample
< LabelType
ListLabelType
 
typedef ListSampleType::Pointer ListSamplePointerType
 
typedef
itk::Statistics::ListSample
< SampleType
ListSampleType
 
typedef itk::SmartPointer< SelfPointer
 
typedef std::map
< ClassLabelType, int > 
SampleNumberType
 
typedef ImageType::PixelType SampleType
 
typedef ListSampleGenerator Self
 
typedef itk::ProcessObject Superclass
 
typedef VectorDataType::Pointer VectorDataPointerType
 
typedef TVectorData VectorDataType
 
- 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

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
SampleNumberType GetClassesSamplesNumberTraining (void) const
 
SampleNumberType GetClassesSamplesNumberValidation (void) const
 
std::map< ClassLabelType, double > GetClassesSize () const
 
virtual const char * GetClassKey () const
 
virtual double GetClassMinSize () const
 
virtual const char * GetNameOfClass () const
 
virtual unsigned short GetNumberOfClasses () const
 
ListLabelTypeGetTrainingListLabel ()
 
ListSampleTypeGetTrainingListSample ()
 
ListLabelTypeGetValidationListLabel ()
 
ListSampleTypeGetValidationListSample ()
 
DataObjectPointer MakeOutput (DataObjectPointerArraySizeType idx) override
 
virtual void SetClassKey (const char *_arg)
 
void SetInput (const ImageType *)
 
const ImageTypeGetInput () const
 
void SetInputVectorData (const VectorDataType *)
 
const VectorDataTypeGetInputVectorData () const
 
virtual long int GetMaxTrainingSize () const
 
virtual void SetMaxTrainingSize (long int _arg)
 
virtual bool GetPolygonEdgeInclusion () const
 
virtual void SetPolygonEdgeInclusion (bool _arg)
 
virtual long int GetMaxValidationSize () const
 
virtual void SetMaxValidationSize (long int _arg)
 
virtual double GetValidationTrainingProportion () const
 
virtual void SetValidationTrainingProportion (double _arg)
 
virtual bool GetBoundByMin () const
 
virtual void SetBoundByMin (bool _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 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 GenerateClassStatistics ()
 
void GenerateData (void) override
 
void GenerateInputRequestedRegion (void) override
 
 ListSampleGenerator ()
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
 ~ListSampleGenerator () override
 
- 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 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 Types

typedef
VectorDataType::DataNodeType 
DataNodeType
 
typedef
DataNodeType::PolygonListPointerType 
PolygonListPointerType
 
typedef
DataNodeType::PolygonListType 
PolygonListType
 
typedef
DataNodeType::PolygonPointerType 
PolygonPointerType
 
typedef DataNodeType::PolygonType PolygonType
 
typedef
itk::Statistics::MersenneTwisterRandomVariateGenerator 
RandomGeneratorType
 
typedef
itk::PreOrderTreeIterator
< typename
VectorDataType::DataTreeType > 
TreeIteratorType
 

Private Member Functions

void ComputeClassSelectionProbability ()
 
double GetPolygonAreaInPixelsUnits (DataNodeType *polygonDataNode, ImageType *image)
 
 ListSampleGenerator (const Self &)=delete
 
void operator= (const Self &)=delete
 

Private Attributes

bool m_BoundByMin
 
std::map< ClassLabelType, double > m_ClassesProbTraining
 
std::map< ClassLabelType, double > m_ClassesProbValidation
 
std::map< ClassLabelType, int > m_ClassesSamplesNumberTraining
 
std::map< ClassLabelType, int > m_ClassesSamplesNumberValidation
 
std::map< ClassLabelType, double > m_ClassesSize
 
std::string m_ClassKey
 
double m_ClassMinSize
 
long int m_MaxTrainingSize
 
long int m_MaxValidationSize
 
unsigned short m_NumberOfClasses
 
bool m_PolygonEdgeInclusion
 
RandomGeneratorType::Pointer m_RandomGenerator
 
double m_ValidationTrainingProportion
 

Additional Inherited Members

- 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 TImage, class TVectorData>
class otb::ListSampleGenerator< TImage, TVectorData >

Produces a ListSample from a VectorImage and a VectorData.

This filter produces two ListSample for learning and validation of learning algorithms. The repartition between the learning and validation ListSample can be adjusted using the SetValidationTrainingProportion() method.

The size of the training and validation ListSample can be limited using the SetMaxTrainingSize() and SetMaxValidationSize() methods.

Classes are specified by the VectorData with a metadata identified by a specific key. This key can be provided by the SetClassKey() method (using "Class" as a default key).

The input VectorData is supposed to be fully contained within the image extent

Definition at line 54 of file otbListSampleGenerator.h.

Member Typedef Documentation

template<class TImage, class TVectorData>
typedef int otb::ListSampleGenerator< TImage, TVectorData >::ClassLabelType

List to store the corresponding labels

Definition at line 84 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
typedef itk::SmartPointer<const Self> otb::ListSampleGenerator< TImage, TVectorData >::ConstPointer

Definition at line 62 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
typedef VectorDataType::DataNodeType otb::ListSampleGenerator< TImage, TVectorData >::DataNodeType
private

Definition at line 174 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
typedef itk::DataObject::Pointer otb::ListSampleGenerator< TImage, TVectorData >::DataObjectPointer

Definition at line 103 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
typedef itk::ProcessObject::DataObjectPointerArraySizeType otb::ListSampleGenerator< TImage, TVectorData >::DataObjectPointerArraySizeType

Definition at line 76 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
typedef ImageType::IndexType otb::ListSampleGenerator< TImage, TVectorData >::ImageIndexType

Definition at line 72 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
typedef ImageType::Pointer otb::ListSampleGenerator< TImage, TVectorData >::ImagePointerType

Definition at line 71 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
typedef ImageType::RegionType otb::ListSampleGenerator< TImage, TVectorData >::ImageRegionType

Definition at line 73 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
typedef TImage otb::ListSampleGenerator< TImage, TVectorData >::ImageType

Definition at line 68 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
typedef itk::FixedArray<ClassLabelType, 1> otb::ListSampleGenerator< TImage, TVectorData >::LabelType

Definition at line 85 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
typedef ListLabelType::Pointer otb::ListSampleGenerator< TImage, TVectorData >::ListLabelPointerType

Definition at line 87 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
typedef itk::Statistics::ListSample<LabelType> otb::ListSampleGenerator< TImage, TVectorData >::ListLabelType

Definition at line 86 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
typedef ListSampleType::Pointer otb::ListSampleGenerator< TImage, TVectorData >::ListSamplePointerType

Definition at line 81 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
typedef itk::Statistics::ListSample<SampleType> otb::ListSampleGenerator< TImage, TVectorData >::ListSampleType

Definition at line 80 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
typedef itk::SmartPointer<Self> otb::ListSampleGenerator< TImage, TVectorData >::Pointer

Definition at line 61 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
typedef DataNodeType::PolygonListPointerType otb::ListSampleGenerator< TImage, TVectorData >::PolygonListPointerType
private

Definition at line 178 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
typedef DataNodeType::PolygonListType otb::ListSampleGenerator< TImage, TVectorData >::PolygonListType
private

Definition at line 177 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
typedef DataNodeType::PolygonPointerType otb::ListSampleGenerator< TImage, TVectorData >::PolygonPointerType
private

Definition at line 176 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
typedef DataNodeType::PolygonType otb::ListSampleGenerator< TImage, TVectorData >::PolygonType
private

Definition at line 175 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
typedef itk::Statistics::MersenneTwisterRandomVariateGenerator otb::ListSampleGenerator< TImage, TVectorData >::RandomGeneratorType
private

Definition at line 208 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
typedef std::map<ClassLabelType, int> otb::ListSampleGenerator< TImage, TVectorData >::SampleNumberType

Definition at line 122 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
typedef ImageType::PixelType otb::ListSampleGenerator< TImage, TVectorData >::SampleType

List to store the pixel values

Definition at line 79 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
typedef ListSampleGenerator otb::ListSampleGenerator< TImage, TVectorData >::Self

Standard class typedefs

Definition at line 59 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
typedef itk::ProcessObject otb::ListSampleGenerator< TImage, TVectorData >::Superclass

Definition at line 60 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
typedef itk::PreOrderTreeIterator<typename VectorDataType::DataTreeType> otb::ListSampleGenerator< TImage, TVectorData >::TreeIteratorType
private

Definition at line 179 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
typedef VectorDataType::Pointer otb::ListSampleGenerator< TImage, TVectorData >::VectorDataPointerType

Definition at line 75 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
typedef TVectorData otb::ListSampleGenerator< TImage, TVectorData >::VectorDataType

Definition at line 74 of file otbListSampleGenerator.h.

Constructor & Destructor Documentation

template<class TImage , class TVectorData >
otb::ListSampleGenerator< TImage, TVectorData >::ListSampleGenerator ( )
protected

Definition at line 66 of file otbListSampleGenerator.hxx.

References itk::ProcessObject::SetNthOutput().

template<class TImage, class TVectorData>
otb::ListSampleGenerator< TImage, TVectorData >::~ListSampleGenerator ( )
inlineoverrideprotected

Definition at line 159 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
otb::ListSampleGenerator< TImage, TVectorData >::ListSampleGenerator ( const Self )
privatedelete

Member Function Documentation

template<class TImage , class TVectorData >
void otb::ListSampleGenerator< TImage, TVectorData >::ComputeClassSelectionProbability ( )
private

Definition at line 362 of file otbListSampleGenerator.hxx.

References itk::NumericTraits< T >::max().

template<class TImage, class TVectorData>
virtual::itk::LightObject::Pointer otb::ListSampleGenerator< TImage, TVectorData >::CreateAnother ( void  ) const
virtual

Reimplemented from itk::Object.

template<class TImage , class TVectorData >
void otb::ListSampleGenerator< TImage, TVectorData >::GenerateClassStatistics ( )
protected

Compute the calss statistics

Definition at line 338 of file otbListSampleGenerator.hxx.

References itk::TreeIteratorBase< TTreeType >::Get().

template<class TImage , class TVectorData >
void otb::ListSampleGenerator< TImage, TVectorData >::GenerateData ( void  )
overrideprotectedvirtual

Triggers the Computation of the sample list

Reimplemented from itk::ProcessObject.

Definition at line 220 of file otbListSampleGenerator.hxx.

References itk::TreeIteratorBase< TTreeType >::Get(), and otb::TransformPhysicalRegionToIndexRegion().

template<class TImage , class TVectorData >
void otb::ListSampleGenerator< TImage, TVectorData >::GenerateInputRequestedRegion ( void  )
overrideprotectedvirtual

Reimplemented from itk::ProcessObject.

Definition at line 198 of file otbListSampleGenerator.hxx.

References itk::Size< VDimension >::Fill().

template<class TImage, class TVectorData>
virtual bool otb::ListSampleGenerator< TImage, TVectorData >::GetBoundByMin ( ) const
virtual

Accessors

template<class TImage, class TVectorData>
SampleNumberType otb::ListSampleGenerator< TImage, TVectorData >::GetClassesSamplesNumberTraining ( void  ) const
inline

Definition at line 125 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
SampleNumberType otb::ListSampleGenerator< TImage, TVectorData >::GetClassesSamplesNumberValidation ( void  ) const
inline

Definition at line 130 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
std::map<ClassLabelType, double> otb::ListSampleGenerator< TImage, TVectorData >::GetClassesSize ( ) const
inline

Definition at line 152 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
virtual const char* otb::ListSampleGenerator< TImage, TVectorData >::GetClassKey ( ) const
virtual
template<class TImage, class TVectorData>
virtual double otb::ListSampleGenerator< TImage, TVectorData >::GetClassMinSize ( ) const
virtual
template<class TImage , class TVectorData >
const TImage * otb::ListSampleGenerator< TImage, TVectorData >::GetInput ( void  ) const

Definition at line 99 of file otbListSampleGenerator.hxx.

template<class TImage , class TVectorData >
const TVectorData * otb::ListSampleGenerator< TImage, TVectorData >::GetInputVectorData ( ) const

Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it

Definition at line 123 of file otbListSampleGenerator.hxx.

template<class TImage, class TVectorData>
virtual long int otb::ListSampleGenerator< TImage, TVectorData >::GetMaxTrainingSize ( ) const
virtual

Accessors

template<class TImage, class TVectorData>
virtual long int otb::ListSampleGenerator< TImage, TVectorData >::GetMaxValidationSize ( ) const
virtual

Accessors

template<class TImage, class TVectorData>
virtual const char* otb::ListSampleGenerator< TImage, TVectorData >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::ProcessObject.

template<class TImage, class TVectorData>
virtual unsigned short otb::ListSampleGenerator< TImage, TVectorData >::GetNumberOfClasses ( ) const
virtual
template<class TImage , class TVectorData >
double otb::ListSampleGenerator< TImage, TVectorData >::GetPolygonAreaInPixelsUnits ( DataNodeType polygonDataNode,
ImageType image 
)
private

Definition at line 436 of file otbListSampleGenerator.hxx.

template<class TImage, class TVectorData>
virtual bool otb::ListSampleGenerator< TImage, TVectorData >::GetPolygonEdgeInclusion ( ) const
virtual

Accessors

template<class TImage , class TVectorData >
ListSampleGenerator< TImage, TVectorData >::ListLabelType * otb::ListSampleGenerator< TImage, TVectorData >::GetTrainingListLabel ( )

Returns the Trainingn label ListSample as a data object

Definition at line 171 of file otbListSampleGenerator.hxx.

References itk::ProcessObject::GetOutput().

template<class TImage , class TVectorData >
ListSampleGenerator< TImage, TVectorData >::ListSampleType * otb::ListSampleGenerator< TImage, TVectorData >::GetTrainingListSample ( )

Returns the Training ListSample as a data object

Definition at line 163 of file otbListSampleGenerator.hxx.

References itk::ProcessObject::GetOutput().

template<class TImage , class TVectorData >
ListSampleGenerator< TImage, TVectorData >::ListLabelType * otb::ListSampleGenerator< TImage, TVectorData >::GetValidationListLabel ( )

Returns the label sample list as a data object

Definition at line 190 of file otbListSampleGenerator.hxx.

References itk::ProcessObject::GetOutput().

template<class TImage , class TVectorData >
ListSampleGenerator< TImage, TVectorData >::ListSampleType * otb::ListSampleGenerator< TImage, TVectorData >::GetValidationListSample ( )

Returns the label sample list as a data object

Definition at line 180 of file otbListSampleGenerator.hxx.

References itk::ProcessObject::GetOutput().

template<class TImage, class TVectorData>
virtual double otb::ListSampleGenerator< TImage, TVectorData >::GetValidationTrainingProportion ( ) const
virtual

Accessors

template<class TImage , class TVectorData >
ListSampleGenerator< TImage, TVectorData >::DataObjectPointer otb::ListSampleGenerator< TImage, TVectorData >::MakeOutput ( DataObjectPointerArraySizeType  idx)
overridevirtual

Reimplemented from itk::ProcessObject.

Definition at line 136 of file otbListSampleGenerator.hxx.

template<class TImage, class TVectorData>
static Pointer otb::ListSampleGenerator< TImage, TVectorData >::New ( )
static

Method for creation through the object factory.

template<class TImage, class TVectorData>
void otb::ListSampleGenerator< TImage, TVectorData >::operator= ( const Self )
privatedelete
template<class TImage , class TVectorData >
void otb::ListSampleGenerator< TImage, TVectorData >::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
overrideprotectedvirtual

Reimplemented from itk::ProcessObject.

Definition at line 459 of file otbListSampleGenerator.hxx.

template<class TImage, class TVectorData>
virtual void otb::ListSampleGenerator< TImage, TVectorData >::SetBoundByMin ( bool  _arg)
virtual

Accessors

template<class TImage, class TVectorData>
virtual void otb::ListSampleGenerator< TImage, TVectorData >::SetClassKey ( const char *  _arg)
virtual
template<class TImage , class TVectorData >
void otb::ListSampleGenerator< TImage, TVectorData >::SetInput ( const ImageType image)

Definition at line 91 of file otbListSampleGenerator.hxx.

template<class TImage , class TVectorData >
void otb::ListSampleGenerator< TImage, TVectorData >::SetInputVectorData ( const VectorDataType vectorData)

Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it

Definition at line 112 of file otbListSampleGenerator.hxx.

template<class TImage, class TVectorData>
virtual void otb::ListSampleGenerator< TImage, TVectorData >::SetMaxTrainingSize ( long int  _arg)
virtual

Accessors

template<class TImage, class TVectorData>
virtual void otb::ListSampleGenerator< TImage, TVectorData >::SetMaxValidationSize ( long int  _arg)
virtual

Accessors

template<class TImage, class TVectorData>
virtual void otb::ListSampleGenerator< TImage, TVectorData >::SetPolygonEdgeInclusion ( bool  _arg)
virtual

Accessors

template<class TImage, class TVectorData>
virtual void otb::ListSampleGenerator< TImage, TVectorData >::SetValidationTrainingProportion ( double  _arg)
virtual

Accessors

Member Data Documentation

template<class TImage, class TVectorData>
bool otb::ListSampleGenerator< TImage, TVectorData >::m_BoundByMin
private

Definition at line 193 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
std::map<ClassLabelType, double> otb::ListSampleGenerator< TImage, TVectorData >::m_ClassesProbTraining
private

Definition at line 202 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
std::map<ClassLabelType, double> otb::ListSampleGenerator< TImage, TVectorData >::m_ClassesProbValidation
private

Definition at line 203 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
std::map<ClassLabelType, int> otb::ListSampleGenerator< TImage, TVectorData >::m_ClassesSamplesNumberTraining
private

Definition at line 205 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
std::map<ClassLabelType, int> otb::ListSampleGenerator< TImage, TVectorData >::m_ClassesSamplesNumberValidation
private

Definition at line 206 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
std::map<ClassLabelType, double> otb::ListSampleGenerator< TImage, TVectorData >::m_ClassesSize
private

Definition at line 201 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
std::string otb::ListSampleGenerator< TImage, TVectorData >::m_ClassKey
private

Definition at line 198 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
double otb::ListSampleGenerator< TImage, TVectorData >::m_ClassMinSize
private

Definition at line 199 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
long int otb::ListSampleGenerator< TImage, TVectorData >::m_MaxTrainingSize
private

Definition at line 188 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
long int otb::ListSampleGenerator< TImage, TVectorData >::m_MaxValidationSize
private

Definition at line 189 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
unsigned short otb::ListSampleGenerator< TImage, TVectorData >::m_NumberOfClasses
private

Definition at line 197 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
bool otb::ListSampleGenerator< TImage, TVectorData >::m_PolygonEdgeInclusion
private

Definition at line 194 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
RandomGeneratorType::Pointer otb::ListSampleGenerator< TImage, TVectorData >::m_RandomGenerator
private

Definition at line 209 of file otbListSampleGenerator.h.

template<class TImage, class TVectorData>
double otb::ListSampleGenerator< TImage, TVectorData >::m_ValidationTrainingProportion
private

Definition at line 190 of file otbListSampleGenerator.h.


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