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

#include <otbKMeansAttributesLabelMapFilter.h>

+ Inheritance diagram for otb::KMeansAttributesLabelMapFilter< TInputImage >:
+ Collaboration diagram for otb::KMeansAttributesLabelMapFilter< TInputImage >:

Public Types

typedef
LabelObjectType::AttributesValueType 
AttributesValueType
 
typedef std::vector< VectorTypeCentroidsVectorType
 
typedef
LabelObjectType::ClassLabelType 
ClassLabelType
 
typedef itk::FixedArray
< ClassLabelType, 1 > 
ClassLabelVectorType
 
typedef itk::SmartPointer
< const Self
ConstPointer
 
typedef DataObjectType::Pointer DataObjectPointerType
 
typedef itk::DataObject DataObjectType
 
typedef
itk::Statistics::EuclideanDistanceMetric
< VectorType
DistanceType
 
typedef
itk::Statistics::KdTreeBasedKmeansEstimator
< TreeType
EstimatorType
 
typedef
InputImageType::ConstPointer 
InputImageConstPointer
 
typedef InputImageType::PixelType InputImagePixelType
 
typedef InputImageType::Pointer InputImagePointer
 
typedef InputImageType::RegionType InputImageRegionType
 
typedef TInputImage InputImageType
 
typedef
otb::LabelMapWithClassLabelToLabeledSampleListFilter
< InputImageType,
ListSampleType,
TrainingListSampleType
LabelMapToSampleListFilterType
 
typedef
InputImageType::LabelObjectType 
LabelObjectType
 
typedef
itk::Statistics::ListSample
< VectorType
ListSampleType
 
typedef
LabelMapToSampleListFilterType::MeasurementFunctorType 
MeasurementFunctorType
 
typedef itk::SmartPointer< SelfPointer
 
typedef
KMeansAttributesLabelMapFilter 
Self
 
typedef itk::LabelMapFilter
< TInputImage, TInputImage > 
Superclass
 
typedef
itk::Statistics::ListSample
< ClassLabelVectorType
TrainingListSampleType
 
typedef
itk::Statistics::WeightedCentroidKdTreeGenerator
< ListSampleType
TreeGeneratorType
 
typedef
TreeGeneratorType::KdTreeType 
TreeType
 
typedef
itk::VariableLengthVector
< AttributesValueType
VectorType
 
- 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

void Compute ()
 
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
MeasurementFunctorTypeGetMeasurementFunctor ()
 
virtual const char * GetNameOfClass () const
 
 itkGetObjectMacro (InputLabelMap, InputImageType)
 
virtual void SetInputLabelMap (InputImageType *_arg)
 
void SetMeasurementFunctor (MeasurementFunctorType &functor)
 
CentroidsVectorTypeGetCentroids ()
 
const CentroidsVectorTypeGetCentroids () const
 
virtual void SetNumberOfClasses (unsigned int _arg)
 
virtual unsigned int GetNumberOfClasses ()
 
- 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 ()
 

Static Public Attributes

static const unsigned int InputImageDimension = TInputImage::ImageDimension
 

Protected Member Functions

 KMeansAttributesLabelMapFilter ()
 
 ~KMeansAttributesLabelMapFilter () override
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void PrintSelf (std::ostream &os, Indent indent) const override
 
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 Member Functions

 KMeansAttributesLabelMapFilter (const Self &)=delete
 
void operator= (const Self &)=delete
 

Private Attributes

CentroidsVectorType m_Centroids
 
InputImagePointer m_InputLabelMap
 
LabelMapToSampleListFilterType::Pointer m_LabelMapToSampleListFilter
 
unsigned int m_NumberOfClasses
 

Additional Inherited Members

- Protected Attributes inherited from itk::LightObject
AtomicInt< int > m_ReferenceCount
 

Detailed Description

template<class TInputImage>
class otb::KMeansAttributesLabelMapFilter< TInputImage >

Execute a KMeans on the attributes of a itk::LabelMap<otb::AttributesMapLabelObject>

Definition at line 38 of file otbKMeansAttributesLabelMapFilter.h.

Member Typedef Documentation

template<class TInputImage >
typedef LabelObjectType::AttributesValueType otb::KMeansAttributesLabelMapFilter< TInputImage >::AttributesValueType

Definition at line 59 of file otbKMeansAttributesLabelMapFilter.h.

template<class TInputImage >
typedef std::vector<VectorType> otb::KMeansAttributesLabelMapFilter< TInputImage >::CentroidsVectorType

Definition at line 79 of file otbKMeansAttributesLabelMapFilter.h.

template<class TInputImage >
typedef LabelObjectType::ClassLabelType otb::KMeansAttributesLabelMapFilter< TInputImage >::ClassLabelType

Definition at line 60 of file otbKMeansAttributesLabelMapFilter.h.

template<class TInputImage >
typedef itk::FixedArray<ClassLabelType, 1> otb::KMeansAttributesLabelMapFilter< TInputImage >::ClassLabelVectorType

Definition at line 64 of file otbKMeansAttributesLabelMapFilter.h.

template<class TInputImage >
typedef itk::SmartPointer<const Self> otb::KMeansAttributesLabelMapFilter< TInputImage >::ConstPointer

Definition at line 46 of file otbKMeansAttributesLabelMapFilter.h.

template<class TInputImage >
typedef DataObjectType::Pointer otb::KMeansAttributesLabelMapFilter< TInputImage >::DataObjectPointerType

Definition at line 56 of file otbKMeansAttributesLabelMapFilter.h.

template<class TInputImage >
typedef itk::DataObject otb::KMeansAttributesLabelMapFilter< TInputImage >::DataObjectType

Definition at line 55 of file otbKMeansAttributesLabelMapFilter.h.

Definition at line 78 of file otbKMeansAttributesLabelMapFilter.h.

Definition at line 77 of file otbKMeansAttributesLabelMapFilter.h.

template<class TInputImage >
typedef InputImageType::ConstPointer otb::KMeansAttributesLabelMapFilter< TInputImage >::InputImageConstPointer

Definition at line 51 of file otbKMeansAttributesLabelMapFilter.h.

template<class TInputImage >
typedef InputImageType::PixelType otb::KMeansAttributesLabelMapFilter< TInputImage >::InputImagePixelType

Definition at line 53 of file otbKMeansAttributesLabelMapFilter.h.

template<class TInputImage >
typedef InputImageType::Pointer otb::KMeansAttributesLabelMapFilter< TInputImage >::InputImagePointer

Definition at line 50 of file otbKMeansAttributesLabelMapFilter.h.

template<class TInputImage >
typedef InputImageType::RegionType otb::KMeansAttributesLabelMapFilter< TInputImage >::InputImageRegionType

Definition at line 52 of file otbKMeansAttributesLabelMapFilter.h.

template<class TInputImage >
typedef TInputImage otb::KMeansAttributesLabelMapFilter< TInputImage >::InputImageType

Some convenient typedefs.

Definition at line 49 of file otbKMeansAttributesLabelMapFilter.h.

Definition at line 71 of file otbKMeansAttributesLabelMapFilter.h.

template<class TInputImage >
typedef InputImageType::LabelObjectType otb::KMeansAttributesLabelMapFilter< TInputImage >::LabelObjectType

Definition at line 54 of file otbKMeansAttributesLabelMapFilter.h.

template<class TInputImage >
typedef itk::Statistics::ListSample<VectorType> otb::KMeansAttributesLabelMapFilter< TInputImage >::ListSampleType

Definition at line 66 of file otbKMeansAttributesLabelMapFilter.h.

Definition at line 72 of file otbKMeansAttributesLabelMapFilter.h.

template<class TInputImage >
typedef itk::SmartPointer<Self> otb::KMeansAttributesLabelMapFilter< TInputImage >::Pointer

Definition at line 45 of file otbKMeansAttributesLabelMapFilter.h.

template<class TInputImage >
typedef KMeansAttributesLabelMapFilter otb::KMeansAttributesLabelMapFilter< TInputImage >::Self

Standard class typedefs.

Definition at line 43 of file otbKMeansAttributesLabelMapFilter.h.

template<class TInputImage >
typedef itk::LabelMapFilter<TInputImage, TInputImage> otb::KMeansAttributesLabelMapFilter< TInputImage >::Superclass

Definition at line 44 of file otbKMeansAttributesLabelMapFilter.h.

Definition at line 67 of file otbKMeansAttributesLabelMapFilter.h.

Definition at line 75 of file otbKMeansAttributesLabelMapFilter.h.

template<class TInputImage >
typedef TreeGeneratorType::KdTreeType otb::KMeansAttributesLabelMapFilter< TInputImage >::TreeType

Definition at line 76 of file otbKMeansAttributesLabelMapFilter.h.

Definition at line 63 of file otbKMeansAttributesLabelMapFilter.h.

Constructor & Destructor Documentation

template<class TInputImage >
otb::KMeansAttributesLabelMapFilter< TInputImage >::KMeansAttributesLabelMapFilter ( )
protected

Definition at line 32 of file otbKMeansAttributesLabelMapFilter.hxx.

template<class TInputImage >
otb::KMeansAttributesLabelMapFilter< TInputImage >::~KMeansAttributesLabelMapFilter ( )
inlineoverrideprotected

Definition at line 128 of file otbKMeansAttributesLabelMapFilter.h.

template<class TInputImage >
otb::KMeansAttributesLabelMapFilter< TInputImage >::KMeansAttributesLabelMapFilter ( const Self )
privatedelete

Member Function Documentation

template<class TInputImage >
void otb::KMeansAttributesLabelMapFilter< TInputImage >::Compute ( void  )
template<class TInputImage >
virtual::itk::LightObject::Pointer otb::KMeansAttributesLabelMapFilter< TInputImage >::CreateAnother ( void  ) const
virtual

Reimplemented from itk::Object.

template<class TInputImage >
CentroidsVectorType& otb::KMeansAttributesLabelMapFilter< TInputImage >::GetCentroids ( )
inline

Return the centroids resulting from the KMeans

Definition at line 93 of file otbKMeansAttributesLabelMapFilter.h.

template<class TInputImage >
const CentroidsVectorType& otb::KMeansAttributesLabelMapFilter< TInputImage >::GetCentroids ( ) const
inline

Return the centroids resulting from the KMeans

Definition at line 97 of file otbKMeansAttributesLabelMapFilter.h.

template<class TInputImage >
MeasurementFunctorType& otb::KMeansAttributesLabelMapFilter< TInputImage >::GetMeasurementFunctor ( )
inline

Definition at line 114 of file otbKMeansAttributesLabelMapFilter.h.

template<class TInputImage >
virtual const char* otb::KMeansAttributesLabelMapFilter< TInputImage >::GetNameOfClass ( ) const
virtual

Runtime information support.

Reimplemented from itk::Object.

template<class TInputImage >
virtual unsigned int otb::KMeansAttributesLabelMapFilter< TInputImage >::GetNumberOfClasses ( )
virtual

Set the number of classes of the input sample list. It will be used to choose the number of centroids. In the one-class case, 10 centroids is chosen. Otherwise, a number of centroids equal to the number of classes

template<class TInputImage >
otb::KMeansAttributesLabelMapFilter< TInputImage >::itkGetObjectMacro ( InputLabelMap  ,
InputImageType   
)
template<class TInputImage >
static Pointer otb::KMeansAttributesLabelMapFilter< TInputImage >::New ( )
static

Standard New method.

template<class TInputImage >
void otb::KMeansAttributesLabelMapFilter< TInputImage >::operator= ( const Self )
privatedelete
template<class TInputImage >
virtual void otb::KMeansAttributesLabelMapFilter< TInputImage >::SetInputLabelMap ( InputImageType _arg)
virtual
template<class TInputImage >
void otb::KMeansAttributesLabelMapFilter< TInputImage >::SetMeasurementFunctor ( MeasurementFunctorType functor)
inline

Definition at line 119 of file otbKMeansAttributesLabelMapFilter.h.

template<class TInputImage >
virtual void otb::KMeansAttributesLabelMapFilter< TInputImage >::SetNumberOfClasses ( unsigned int  _arg)
virtual

Set the number of classes of the input sample list. It will be used to choose the number of centroids. In the one-class case, 10 centroids is chosen. Otherwise, a number of centroids equal to the number of classes

Member Data Documentation

template<class TInputImage >
const unsigned int otb::KMeansAttributesLabelMapFilter< TInputImage >::InputImageDimension = TInputImage::ImageDimension
static

ImageDimension constants

Definition at line 83 of file otbKMeansAttributesLabelMapFilter.h.

template<class TInputImage >
CentroidsVectorType otb::KMeansAttributesLabelMapFilter< TInputImage >::m_Centroids
private

Definition at line 136 of file otbKMeansAttributesLabelMapFilter.h.

template<class TInputImage >
InputImagePointer otb::KMeansAttributesLabelMapFilter< TInputImage >::m_InputLabelMap
private

Definition at line 135 of file otbKMeansAttributesLabelMapFilter.h.

template<class TInputImage >
LabelMapToSampleListFilterType::Pointer otb::KMeansAttributesLabelMapFilter< TInputImage >::m_LabelMapToSampleListFilter
private

Definition at line 138 of file otbKMeansAttributesLabelMapFilter.h.

template<class TInputImage >
unsigned int otb::KMeansAttributesLabelMapFilter< TInputImage >::m_NumberOfClasses
private

Definition at line 139 of file otbKMeansAttributesLabelMapFilter.h.


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