ITK  4.12.0
Insight Segmentation and Registration Toolkit
Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Attributes | List of all members
itk::Statistics::JointDomainImageToListSampleAdaptor< TImage > Class Template Reference

#include <itkJointDomainImageToListSampleAdaptor.h>

+ Inheritance diagram for itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >:
+ Collaboration diagram for itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >:

Detailed Description

template<typename TImage>
class itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >

This adaptor returns measurement vectors composed of an image pixel's range domain value (pixel value) and spatial domain value (pixel's physical coordiantes).

This class is a derived class of the ListSample class. This class overrides the GetMeasurementVector method. The GetMeasurementVector returns a measurement vector that consist of a pixel's physical coordinates and intensity value. For example, if the image dimension is 3, and the pixel value is two component vector, the measurement vector is a 5 component vector. The first three component will be x, y, z physical coordinates (not index) and the rest two component is the pixel values. The type of component is float or which is determined by the ImageJointDomainTraits class. When the pixel value type is double, the component value type of a measurement vector is double. In other case, the component value type is float becase the physical coordinate value type is float. Since the measurment vector is a composition of spatial domain and range domain, for many statistical analysis, we want to normalize the values from both domains. For this purpose, there is the SetNormalizationFactors method. With the above example (5 component measurement vector), you can specify a 5 component normalization factor array. With such factors, the GetMeasurementVector method returns a measurement vector whose each component is divided by the corresponding component of the factor array.

See Also
Sample, ListSample, ImageToListSampleAdaptor

Definition at line 91 of file itkJointDomainImageToListSampleAdaptor.h.

Classes

class  ConstIterator
 
class  Iterator
 

Public Types

typedef
Superclass::AbsoluteFrequencyType 
AbsoluteFrequencyType
 
typedef SmartPointer< const SelfConstPointer
 
typedef
ImageJointDomainTraitsType::CoordinateRepType 
CoordinateRepType
 
typedef
ImageRegionConstIterator
< ImageType
ImageConstIteratorType
 
typedef ImageType::ConstPointer ImageConstPointer
 
typedef ImageType::IndexType ImageIndexType
 
typedef ImageRegionIterator
< ImageType
ImageIteratorType
 
typedef ImageJointDomainTraits
< TImage > 
ImageJointDomainTraitsType
 
typedef ImageType::Pointer ImagePointer
 
typedef ImageType::RegionType ImageRegionType
 
typedef ImageType::SizeType ImageSizeType
 
typedef TImage ImageType
 
typedef
Superclass::InstanceIdentifier 
InstanceIdentifier
 
typedef std::vector
< InstanceIdentifier
InstanceIdentifierVectorType
 
typedef
ImageJointDomainTraitsType::MeasurementType 
MeasurementType
 
typedef
Superclass::MeasurementVectorSizeType 
MeasurementVectorSizeType
 
typedef
ImageJointDomainTraitsType::MeasurementVectorType 
MeasurementVectorType
 
typedef FixedArray< float,
itkGetStaticConstMacro(MeasurementVectorSize) > 
NormalizationFactorsType
 
typedef
ImageType::PixelContainerConstPointer 
PixelContainerConstPointer
 
typedef ImageType::PixelType PixelType
 
typedef SmartPointer< SelfPointer
 
typedef
ImageJointDomainTraitsType::PointType 
PointType
 
typedef
ImageJointDomainTraitsType::RangeDomainMeasurementType 
RangeDomainMeasurementType
 
typedef FixedArray
< RangeDomainMeasurementType,
itkGetStaticConstMacro(RangeDomainDimension) > 
RangeDomainMeasurementVectorType
 
typedef
JointDomainImageToListSampleAdaptor 
Self
 
typedef ListSample< typename
ImageJointDomainTraits< TImage >
::MeasurementVectorType
Superclass
 
typedef
Superclass::TotalAbsoluteFrequencyType 
TotalAbsoluteFrequencyType
 
typedef MeasurementVectorType ValueType
 
- Public Types inherited from itk::Statistics::ListSample< ImageJointDomainTraits< TImage >::MeasurementVectorType >
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
< ImageJointDomainTraits
< TImage >
::MeasurementVectorType
Superclass
 
typedef
Superclass::TotalAbsoluteFrequencyType 
TotalAbsoluteFrequencyType
 
typedef MeasurementVectorType ValueType
 
- Public Types inherited from itk::Statistics::Sample< ImageJointDomainTraits< TImage >::MeasurementVectorType >
typedef
MeasurementVectorTraits::AbsoluteFrequencyType 
AbsoluteFrequencyType
 
typedef SmartPointer< const SelfConstPointer
 
typedef
MeasurementVectorTraits::InstanceIdentifier 
InstanceIdentifier
 
typedef
MeasurementVectorTraitsTypes
< MeasurementVectorType >
::ValueType 
MeasurementType
 
typedef unsigned int MeasurementVectorSizeType
 
typedef ImageJointDomainTraits
< TImage >
::MeasurementVectorType 
MeasurementVectorType
 
typedef SmartPointer< SelfPointer
 
typedef Sample Self
 
typedef DataObject Superclass
 
typedef NumericTraits
< AbsoluteFrequencyType >
::AccumulateType 
TotalAbsoluteFrequencyType
 

Public Member Functions

Iterator Begin ()
 
ConstIterator Begin () const
 
virtual ::itk::LightObject::Pointer CreateAnother () const
 
Iterator End ()
 
ConstIterator End () const
 
AbsoluteFrequencyType GetFrequency (InstanceIdentifier id) const override
 
const TImage * GetImage () const
 
const MeasurementVectorTypeGetMeasurementVector (InstanceIdentifier id) const override
 
virtual const char * GetNameOfClass () const
 
TotalAbsoluteFrequencyType GetTotalFrequency () const override
 
void SetImage (const TImage *image)
 
void SetNormalizationFactors (NormalizationFactorsType &factors)
 
InstanceIdentifier Size () const override
 
virtual void SetUsePixelContainer (bool _arg)
 
virtual bool GetUsePixelContainer () const
 
virtual void UsePixelContainerOn ()
 
virtual void UsePixelContainerOff ()
 
- Public Member Functions inherited from itk::Statistics::ListSample< ImageJointDomainTraits< TImage >::MeasurementVectorType >
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< ImageJointDomainTraits< TImage >::MeasurementVectorType >
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< ImageJointDomainTraits< TImage >::MeasurementVectorType >
static Pointer New ()
 

Static Public Attributes

static const unsigned int MeasurementVectorSize = ImageJointDomainTraitsType::Dimension
 
static const unsigned int RangeDomainDimension = itk::PixelTraits< typename TImage::PixelType >::Dimension
 

Protected Member Functions

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

Private Attributes

ImageConstPointer m_Image
 
NormalizationFactorsType m_NormalizationFactors
 
PixelContainerConstPointer m_PixelContainer
 
ImageIndexType m_TempIndex
 
PointType m_TempPoint
 
RangeDomainMeasurementVectorType m_TempRangeVector
 
MeasurementVectorType m_TempVector
 
bool m_UsePixelContainer
 

Member Typedef Documentation

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

Definition at line 127 of file itkJointDomainImageToListSampleAdaptor.h.

template<typename TImage >
typedef SmartPointer< const Self > itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::ConstPointer

Definition at line 103 of file itkJointDomainImageToListSampleAdaptor.h.

Definition at line 111 of file itkJointDomainImageToListSampleAdaptor.h.

Definition at line 134 of file itkJointDomainImageToListSampleAdaptor.h.

template<typename TImage >
typedef ImageType::ConstPointer itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::ImageConstPointer

Definition at line 137 of file itkJointDomainImageToListSampleAdaptor.h.

template<typename TImage >
typedef ImageType::IndexType itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::ImageIndexType

Definition at line 140 of file itkJointDomainImageToListSampleAdaptor.h.

Definition at line 133 of file itkJointDomainImageToListSampleAdaptor.h.

Definition at line 105 of file itkJointDomainImageToListSampleAdaptor.h.

template<typename TImage >
typedef ImageType::Pointer itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::ImagePointer

Definition at line 136 of file itkJointDomainImageToListSampleAdaptor.h.

template<typename TImage >
typedef ImageType::RegionType itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::ImageRegionType

Definition at line 142 of file itkJointDomainImageToListSampleAdaptor.h.

template<typename TImage >
typedef ImageType::SizeType itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::ImageSizeType

Definition at line 141 of file itkJointDomainImageToListSampleAdaptor.h.

template<typename TImage >
typedef TImage itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::ImageType

Image typedefs

Definition at line 132 of file itkJointDomainImageToListSampleAdaptor.h.

Definition at line 129 of file itkJointDomainImageToListSampleAdaptor.h.

Definition at line 166 of file itkJointDomainImageToListSampleAdaptor.h.

Definition at line 108 of file itkJointDomainImageToListSampleAdaptor.h.

Definition at line 123 of file itkJointDomainImageToListSampleAdaptor.h.

Definition at line 107 of file itkJointDomainImageToListSampleAdaptor.h.

template<typename TImage >
typedef FixedArray< float, itkGetStaticConstMacro(MeasurementVectorSize) > itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::NormalizationFactorsType

Definition at line 167 of file itkJointDomainImageToListSampleAdaptor.h.

template<typename TImage >
typedef ImageType::PixelContainerConstPointer itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::PixelContainerConstPointer

Definition at line 139 of file itkJointDomainImageToListSampleAdaptor.h.

template<typename TImage >
typedef ImageType::PixelType itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::PixelType

Definition at line 138 of file itkJointDomainImageToListSampleAdaptor.h.

template<typename TImage >
typedef SmartPointer< Self > itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::Pointer

Definition at line 102 of file itkJointDomainImageToListSampleAdaptor.h.

Definition at line 110 of file itkJointDomainImageToListSampleAdaptor.h.

Definition at line 109 of file itkJointDomainImageToListSampleAdaptor.h.

Definition at line 164 of file itkJointDomainImageToListSampleAdaptor.h.

Standard class typedefs

Definition at line 97 of file itkJointDomainImageToListSampleAdaptor.h.

Definition at line 100 of file itkJointDomainImageToListSampleAdaptor.h.

Definition at line 128 of file itkJointDomainImageToListSampleAdaptor.h.

Definition at line 143 of file itkJointDomainImageToListSampleAdaptor.h.

Constructor & Destructor Documentation

template<typename TImage >
virtual itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::~JointDomainImageToListSampleAdaptor ( )
inlineprotectedvirtual

Definition at line 332 of file itkJointDomainImageToListSampleAdaptor.h.

Member Function Documentation

template<typename TImage >
Iterator itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::Begin ( )
inline

returns an iterator that points to the beginning of the container

Definition at line 299 of file itkJointDomainImageToListSampleAdaptor.h.

Referenced by itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::ConstIterator::ConstIterator().

template<typename TImage >
ConstIterator itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::Begin ( ) const
inline

returns an iterator that points to the beginning of the container

Definition at line 315 of file itkJointDomainImageToListSampleAdaptor.h.

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

returns an iterator that points to the end of the container

Definition at line 307 of file itkJointDomainImageToListSampleAdaptor.h.

template<typename TImage >
ConstIterator itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::End ( ) const
inline

returns an iterator that points to the end of the container

Definition at line 323 of file itkJointDomainImageToListSampleAdaptor.h.

template<typename TImage >
AbsoluteFrequencyType itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::GetFrequency ( InstanceIdentifier  id) const
override

Get frequency

template<typename TImage >
const TImage* itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::GetImage ( ) const

Method to get the image

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

Gets the measurement vector specified by the instance identifier. This method overrides superclass method.

template<typename TImage >
virtual const char* itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::Statistics::ListSample< ImageJointDomainTraits< TImage >::MeasurementVectorType >.

template<typename TImage >
TotalAbsoluteFrequencyType itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::GetTotalFrequency ( ) const
overridevirtual
template<typename TImage >
virtual bool itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::GetUsePixelContainer ( ) const
virtual

Method to set UsePixelContainer flag

template<typename TImage >
static Pointer itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::New ( )
static

Method for creation through the object factory.

template<typename TImage >
void itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
overrideprotectedvirtual
template<typename TImage >
void itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::SetImage ( const TImage *  image)

Method to set the image

template<typename TImage >
void itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::SetNormalizationFactors ( NormalizationFactorsType factors)

Sets the normalization factors

template<typename TImage >
virtual void itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::SetUsePixelContainer ( bool  _arg)
virtual

Method to set UsePixelContainer flag

template<typename TImage >
InstanceIdentifier itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::Size ( ) const
overridevirtual

returns the number of measurement vectors in this container

Implements itk::Statistics::Sample< ImageJointDomainTraits< TImage >::MeasurementVectorType >.

template<typename TImage >
virtual void itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::UsePixelContainerOff ( )
virtual

Method to set UsePixelContainer flag

template<typename TImage >
virtual void itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::UsePixelContainerOn ( )
virtual

Method to set UsePixelContainer flag

Member Data Documentation

template<typename TImage >
ImageConstPointer itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::m_Image
private

Definition at line 343 of file itkJointDomainImageToListSampleAdaptor.h.

template<typename TImage >
NormalizationFactorsType itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::m_NormalizationFactors
private

Definition at line 336 of file itkJointDomainImageToListSampleAdaptor.h.

template<typename TImage >
PixelContainerConstPointer itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::m_PixelContainer
private

Definition at line 346 of file itkJointDomainImageToListSampleAdaptor.h.

template<typename TImage >
ImageIndexType itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::m_TempIndex
mutableprivate

Definition at line 341 of file itkJointDomainImageToListSampleAdaptor.h.

template<typename TImage >
PointType itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::m_TempPoint
mutableprivate

Definition at line 340 of file itkJointDomainImageToListSampleAdaptor.h.

template<typename TImage >
RangeDomainMeasurementVectorType itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::m_TempRangeVector
mutableprivate

Definition at line 342 of file itkJointDomainImageToListSampleAdaptor.h.

template<typename TImage >
MeasurementVectorType itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::m_TempVector
mutableprivate

Definition at line 339 of file itkJointDomainImageToListSampleAdaptor.h.

template<typename TImage >
bool itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::m_UsePixelContainer
private

Definition at line 344 of file itkJointDomainImageToListSampleAdaptor.h.

template<typename TImage >
const unsigned int itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::MeasurementVectorSize = ImageJointDomainTraitsType::Dimension
static

the number of components in a measurement vector

Definition at line 121 of file itkJointDomainImageToListSampleAdaptor.h.

template<typename TImage >
const unsigned int itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::RangeDomainDimension = itk::PixelTraits< typename TImage::PixelType >::Dimension
static

Definition at line 161 of file itkJointDomainImageToListSampleAdaptor.h.


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