ITK  4.12.0
Insight Segmentation and Registration Toolkit
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
itk::Statistics::PointSetToListSampleAdaptor< TPointSet > Class Template Reference

#include <itkPointSetToListSampleAdaptor.h>

+ Inheritance diagram for itk::Statistics::PointSetToListSampleAdaptor< TPointSet >:
+ Collaboration diagram for itk::Statistics::PointSetToListSampleAdaptor< TPointSet >:

Detailed Description

template<typename TPointSet>
class itk::Statistics::PointSetToListSampleAdaptor< TPointSet >

This class provides ListSample interface to ITK PointSet.

After calling SetPointSet(PointSet*) method to plug-in the PointSet object, users can use Sample interfaces to access PointSet data. This adaptor assumes that the PointsContainer is actual storage for measurment vectors. In other words, PointSet's dimension equals to the measurement vectors size. This class totally ignores PointsDataContainer.

See Also
Sample, ListSample, PointSet
Examples:
Examples/Statistics/PointSetToAdaptor.cxx, and Examples/Statistics/PointSetToListSampleAdaptor.cxx.

Definition at line 46 of file itkPointSetToListSampleAdaptor.h.

Classes

class  ConstIterator
 
class  Iterator
 

Public Types

typedef
Superclass::AbsoluteFrequencyType 
AbsoluteFrequencyType
 
typedef SmartPointer< const SelfConstPointer
 
typedef
Superclass::InstanceIdentifier 
InstanceIdentifier
 
typedef Superclass::MeasurementType MeasurementType
 
typedef
Superclass::MeasurementVectorSizeType 
MeasurementVectorSizeType
 
typedef
Superclass::MeasurementVectorType 
MeasurementVectorType
 
typedef SmartPointer< SelfPointer
 
typedef TPointSet::PointsContainer PointsContainer
 
typedef
TPointSet::PointsContainerConstIterator 
PointsContainerConstIteratorType
 
typedef
TPointSet::PointsContainerConstPointer 
PointsContainerConstPointer
 
typedef
TPointSet::PointsContainerIterator 
PointsContainerIteratorType
 
typedef
TPointSet::PointsContainerPointer 
PointsContainerPointer
 
typedef TPointSet::ConstPointer PointSetConstPointer
 
typedef TPointSet::Pointer PointSetPointer
 
typedef TPointSet PointSetType
 
typedef TPointSet::PointType PointType
 
typedef PointSetToListSampleAdaptor Self
 
typedef ListSample< typename
TPointSet::PointType > 
Superclass
 
typedef
Superclass::TotalAbsoluteFrequencyType 
TotalAbsoluteFrequencyType
 
typedef MeasurementVectorType ValueType
 
- Public Types inherited from itk::Statistics::ListSample< TPointSet::PointType >
typedef
Superclass::AbsoluteFrequencyType 
AbsoluteFrequencyType
 
typedef SmartPointer< const SelfConstPointer
 
typedef
Superclass::InstanceIdentifier 
InstanceIdentifier
 
typedef std::vector
< MeasurementVectorType
InternalDataContainerType
 
typedef Superclass::MeasurementType MeasurementType
 
typedef
Superclass::MeasurementVectorSizeType 
MeasurementVectorSizeType
 
typedef
Superclass::MeasurementVectorType 
MeasurementVectorType
 
typedef SmartPointer< SelfPointer
 
typedef ListSample Self
 
typedef Sample
< TPointSet::PointType > 
Superclass
 
typedef
Superclass::TotalAbsoluteFrequencyType 
TotalAbsoluteFrequencyType
 
typedef MeasurementVectorType ValueType
 
- Public Types inherited from itk::Statistics::Sample< TPointSet::PointType >
typedef
MeasurementVectorTraits::AbsoluteFrequencyType 
AbsoluteFrequencyType
 
typedef SmartPointer< const SelfConstPointer
 
typedef
MeasurementVectorTraits::InstanceIdentifier 
InstanceIdentifier
 
typedef
MeasurementVectorTraitsTypes
< MeasurementVectorType >
::ValueType 
MeasurementType
 
typedef unsigned int MeasurementVectorSizeType
 
typedef TPointSet::PointType MeasurementVectorType
 
typedef SmartPointer< SelfPointer
 
typedef Sample Self
 
typedef DataObject Superclass
 
typedef NumericTraits
< AbsoluteFrequencyType >
::AccumulateType 
TotalAbsoluteFrequencyType
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother () const
 
AbsoluteFrequencyType GetFrequency (InstanceIdentifier id) const override
 
const MeasurementVectorTypeGetMeasurementVector (InstanceIdentifier id) const override
 
virtual const char * GetNameOfClass () const
 
const TPointSet * GetPointSet ()
 
TotalAbsoluteFrequencyType GetTotalFrequency () const override
 
void SetPointSet (const TPointSet *pointSet)
 
InstanceIdentifier Size () const override
 
- Public Member Functions inherited from itk::Statistics::ListSample< TPointSet::PointType >
Iterator Begin ()
 
ConstIterator Begin () const
 
void Clear ()
 
virtual ::itk::LightObject::Pointer CreateAnother () const
 
Iterator End ()
 
ConstIterator End () const
 
AbsoluteFrequencyType GetFrequency (InstanceIdentifier id) const override
 
const MeasurementVectorTypeGetMeasurementVector (InstanceIdentifier id) const override
 
TotalAbsoluteFrequencyType GetTotalFrequency () const override
 
virtual void Graft (const DataObject *thatObject) override
 
void PushBack (const MeasurementVectorType &mv)
 
void Resize (InstanceIdentifier newsize)
 
void SetMeasurement (InstanceIdentifier id, unsigned int dim, const MeasurementType &value)
 
void SetMeasurementVector (InstanceIdentifier id, const MeasurementVectorType &mv)
 
InstanceIdentifier Size () const override
 
- Public Member Functions inherited from itk::Statistics::Sample< TPointSet::PointType >
virtual MeasurementVectorSizeType GetMeasurementVectorSize () const
 
virtual void SetMeasurementVectorSize (MeasurementVectorSizeType s)
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from itk::Statistics::ListSample< TPointSet::PointType >
static Pointer New ()
 
PointSetConstPointer m_PointSet
 
PointsContainerConstPointer m_PointsContainer
 
PointType m_TempPoint
 
Iterator Begin ()
 
Iterator End ()
 
ConstIterator Begin () const
 
ConstIterator End () const
 
 PointSetToListSampleAdaptor ()
 
virtual ~PointSetToListSampleAdaptor ()
 
void PrintSelf (std::ostream &os, Indent indent) const override
 

Additional Inherited Members

- Protected Member Functions inherited from itk::Statistics::ListSample< TPointSet::PointType >
 ListSample ()
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
virtual ~ListSample ()
 
- Protected Member Functions inherited from itk::Statistics::Sample< TPointSet::PointType >
 Sample ()
 
virtual ~Sample ()
 

Member Typedef Documentation

Definition at line 77 of file itkPointSetToListSampleAdaptor.h.

template<typename TPointSet >
typedef SmartPointer< const Self > itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::ConstPointer

Definition at line 54 of file itkPointSetToListSampleAdaptor.h.

Definition at line 80 of file itkPointSetToListSampleAdaptor.h.

Superclass typedefs for Measurement vector, measurement, Instance Identifier, frequency, size, size element value

Definition at line 75 of file itkPointSetToListSampleAdaptor.h.

Definition at line 79 of file itkPointSetToListSampleAdaptor.h.

Definition at line 76 of file itkPointSetToListSampleAdaptor.h.

template<typename TPointSet >
typedef SmartPointer< Self > itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::Pointer

Definition at line 53 of file itkPointSetToListSampleAdaptor.h.

template<typename TPointSet >
typedef TPointSet::PointsContainer itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::PointsContainer

Definition at line 66 of file itkPointSetToListSampleAdaptor.h.

template<typename TPointSet >
typedef TPointSet::PointsContainerConstIterator itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::PointsContainerConstIteratorType

Definition at line 70 of file itkPointSetToListSampleAdaptor.h.

template<typename TPointSet >
typedef TPointSet::PointsContainerConstPointer itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::PointsContainerConstPointer

Definition at line 68 of file itkPointSetToListSampleAdaptor.h.

template<typename TPointSet >
typedef TPointSet::PointsContainerIterator itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::PointsContainerIteratorType

Definition at line 69 of file itkPointSetToListSampleAdaptor.h.

template<typename TPointSet >
typedef TPointSet::PointsContainerPointer itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::PointsContainerPointer

Definition at line 67 of file itkPointSetToListSampleAdaptor.h.

template<typename TPointSet >
typedef TPointSet::ConstPointer itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::PointSetConstPointer

Definition at line 65 of file itkPointSetToListSampleAdaptor.h.

template<typename TPointSet >
typedef TPointSet::Pointer itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::PointSetPointer

Definition at line 64 of file itkPointSetToListSampleAdaptor.h.

template<typename TPointSet >
typedef TPointSet itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::PointSetType

PointSet typedefs

Definition at line 60 of file itkPointSetToListSampleAdaptor.h.

template<typename TPointSet >
typedef TPointSet::PointType itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::PointType

Definition at line 71 of file itkPointSetToListSampleAdaptor.h.

template<typename TPointSet >
typedef PointSetToListSampleAdaptor itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::Self

Standard class typedefs

Definition at line 51 of file itkPointSetToListSampleAdaptor.h.

template<typename TPointSet >
typedef ListSample< typename TPointSet::PointType > itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::Superclass

Definition at line 52 of file itkPointSetToListSampleAdaptor.h.

Definition at line 78 of file itkPointSetToListSampleAdaptor.h.

template<typename TPointSet >
typedef MeasurementVectorType itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::ValueType

Definition at line 82 of file itkPointSetToListSampleAdaptor.h.

Constructor & Destructor Documentation

template<typename TPointSet >
itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::PointSetToListSampleAdaptor ( )
protected

the PointSet data source pointer

template<typename TPointSet >
virtual itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::~PointSetToListSampleAdaptor ( )
inlineprotectedvirtual

the PointSet data source pointer

Definition at line 257 of file itkPointSetToListSampleAdaptor.h.

Member Function Documentation

template<typename TPointSet >
Iterator itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::Begin ( )
inline

returns an iterator that points to the beginning of the container

Definition at line 217 of file itkPointSetToListSampleAdaptor.h.

Referenced by itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::ConstIterator::ConstIterator().

template<typename TPointSet >
ConstIterator itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::Begin ( ) const
inline

returns an iterator that points to the beginning of the container

Definition at line 239 of file itkPointSetToListSampleAdaptor.h.

template<typename TPointSet >
virtual::itk::LightObject::Pointer itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::CreateAnother ( ) const
template<typename TPointSet >
Iterator itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::End ( )
inline

returns an iterator that points to the end of the container

Definition at line 228 of file itkPointSetToListSampleAdaptor.h.

template<typename TPointSet >
ConstIterator itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::End ( ) const
inline

returns an iterator that points to the end of the container

Definition at line 247 of file itkPointSetToListSampleAdaptor.h.

template<typename TPointSet >
AbsoluteFrequencyType itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::GetFrequency ( InstanceIdentifier  id) const
override

returns 1 as other subclasses of ListSampleBase does

template<typename TPointSet >
const MeasurementVectorType& itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::GetMeasurementVector ( InstanceIdentifier  id) const
override

returns the measurement vector that is specified by the instance identifier argument.

template<typename TPointSet >
virtual const char* itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::Statistics::ListSample< TPointSet::PointType >.

template<typename TPointSet >
const TPointSet* itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::GetPointSet ( )

Method to get the point set

template<typename TPointSet >
TotalAbsoluteFrequencyType itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::GetTotalFrequency ( ) const
overridevirtual

returns the size of this container

Implements itk::Statistics::Sample< TPointSet::PointType >.

template<typename TPointSet >
static Pointer itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::New ( )
static

Method for creation through the object factory.

template<typename TPointSet >
void itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
overrideprotectedvirtual

the PointSet data source pointer

Reimplemented from itk::Statistics::Sample< TPointSet::PointType >.

template<typename TPointSet >
void itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::SetPointSet ( const TPointSet *  pointSet)

Method to set the point set

template<typename TPointSet >
InstanceIdentifier itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::Size ( ) const
overridevirtual

returns the number of measurement vectors in this container

Implements itk::Statistics::Sample< TPointSet::PointType >.

Member Data Documentation

template<typename TPointSet >
PointsContainerConstPointer itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::m_PointsContainer
private

the points container which will be actually used for storing measurement vectors

Definition at line 268 of file itkPointSetToListSampleAdaptor.h.

template<typename TPointSet >
PointSetConstPointer itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::m_PointSet
private

the PointSet data source pointer

Definition at line 261 of file itkPointSetToListSampleAdaptor.h.

template<typename TPointSet >
PointType itk::Statistics::PointSetToListSampleAdaptor< TPointSet >::m_TempPoint
mutableprivate

temporary points for conversions

Definition at line 271 of file itkPointSetToListSampleAdaptor.h.


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