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

#include <itkJointDomainImageToListSampleAdaptor.h>

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

List of all members.

Classes

class  ConstIterator
 Const Iterator. More...
class  Iterator
 Iterator. More...

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 Member Functions

Iterator Begin ()
ConstIterator Begin () const
virtual ::itk::LightObject::Pointer CreateAnother (void) const
Iterator End ()
ConstIterator End () const
AbsoluteFrequencyType GetFrequency (InstanceIdentifier id) const
const TImage * GetImage () const
const MeasurementVectorTypeGetMeasurementVector (InstanceIdentifier id) const
virtual const char * GetNameOfClass () const
TotalAbsoluteFrequencyType GetTotalFrequency () const
void SetImage (const TImage *image)
void SetNormalizationFactors (NormalizationFactorsType &factors)
InstanceIdentifier Size () const
virtual void SetUsePixelContainer (bool _arg)
virtual bool GetUsePixelContainer () const
virtual void UsePixelContainerOn ()
virtual void UsePixelContainerOff ()

Static Public Member Functions

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
virtual ~JointDomainImageToListSampleAdaptor ()

Private Member Functions

 JointDomainImageToListSampleAdaptor (const Self &)
void operator= (const Self &)

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

Detailed Description

template<class 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.


Member Typedef Documentation

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

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

Definition at line 127 of file itkJointDomainImageToListSampleAdaptor.h.

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

Definition at line 111 of file itkJointDomainImageToListSampleAdaptor.h.

Definition at line 134 of file itkJointDomainImageToListSampleAdaptor.h.

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

Definition at line 137 of file itkJointDomainImageToListSampleAdaptor.h.

template<class 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<class TImage >
typedef ImageType::Pointer itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::ImagePointer

Definition at line 136 of file itkJointDomainImageToListSampleAdaptor.h.

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

Definition at line 142 of file itkJointDomainImageToListSampleAdaptor.h.

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

Definition at line 141 of file itkJointDomainImageToListSampleAdaptor.h.

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

Image typedefs

Definition at line 132 of file itkJointDomainImageToListSampleAdaptor.h.

InstanceIdentifier typedef. This identifier is a unique sequential id for each measurement vector in a Sample subclass.

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

Definition at line 129 of file itkJointDomainImageToListSampleAdaptor.h.

Definition at line 166 of file itkJointDomainImageToListSampleAdaptor.h.

ValueType of a measurement (ValueType of a component of the MeasurementVector

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

Definition at line 108 of file itkJointDomainImageToListSampleAdaptor.h.

Typedef for the length of each measurement vector

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

Definition at line 123 of file itkJointDomainImageToListSampleAdaptor.h.

Typedefs inherited from the superclass

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

Definition at line 107 of file itkJointDomainImageToListSampleAdaptor.h.

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

Definition at line 167 of file itkJointDomainImageToListSampleAdaptor.h.

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

Definition at line 139 of file itkJointDomainImageToListSampleAdaptor.h.

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

Definition at line 138 of file itkJointDomainImageToListSampleAdaptor.h.

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

Definition at line 110 of file itkJointDomainImageToListSampleAdaptor.h.

Definition at line 109 of file itkJointDomainImageToListSampleAdaptor.h.

Definition at line 164 of file itkJointDomainImageToListSampleAdaptor.h.

Value type of a measurement (component of the measurement vector)

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

Definition at line 143 of file itkJointDomainImageToListSampleAdaptor.h.


Constructor & Destructor Documentation

template<class TImage >
virtual itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::~JointDomainImageToListSampleAdaptor ( ) [inline, protected, virtual]

Definition at line 331 of file itkJointDomainImageToListSampleAdaptor.h.

template<class TImage >
itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::JointDomainImageToListSampleAdaptor ( const Self ) [private]

Member Function Documentation

template<class TImage >
Iterator itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::Begin ( void  ) [inline]
template<class TImage >
ConstIterator itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::Begin ( void  ) const [inline]

returns an iterator that points to the beginning of the container

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

Definition at line 314 of file itkJointDomainImageToListSampleAdaptor.h.

template<class TImage >
virtual::itk::LightObject::Pointer itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::CreateAnother ( void  ) const [virtual]

Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.

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

template<class TImage >
Iterator itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::End ( void  ) [inline]

returns an iterator that points to the end of the container

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

Definition at line 306 of file itkJointDomainImageToListSampleAdaptor.h.

template<class TImage >
ConstIterator itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::End ( void  ) const [inline]

returns an iterator that points to the end of the container

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

Definition at line 322 of file itkJointDomainImageToListSampleAdaptor.h.

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

Method to get the image

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

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

template<class 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<class TImage >
virtual bool itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::GetUsePixelContainer ( ) const [virtual]

Method to set UsePixelContainer flag

template<class TImage >
static Pointer itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::New ( ) [static]

Method for creation through the object factory.

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

template<class TImage >
void itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::operator= ( const Self ) [private]
template<class TImage >
void itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const [protected, virtual]

Method for grafting the content of one data object into another one. This method is intended to be overloaded by derived classes. Each one of them should use dynamic_casting in order to verify that the grafted object is actually of the same type as the class on which the Graft() method was invoked.

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

template<class TImage >
void itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::SetImage ( const TImage *  image)

Method to set the image

Sets the normalization factors

template<class TImage >
virtual void itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::SetUsePixelContainer ( bool  _arg) [virtual]

Method to set UsePixelContainer flag

template<class TImage >
InstanceIdentifier itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::Size ( ) const [virtual]

returns the number of measurement vectors in this container

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

template<class TImage >
virtual void itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::UsePixelContainerOff ( ) [virtual]

Method to set UsePixelContainer flag

template<class TImage >
virtual void itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::UsePixelContainerOn ( ) [virtual]

Method to set UsePixelContainer flag


Member Data Documentation

Definition at line 343 of file itkJointDomainImageToListSampleAdaptor.h.

Definition at line 338 of file itkJointDomainImageToListSampleAdaptor.h.

Definition at line 346 of file itkJointDomainImageToListSampleAdaptor.h.

template<class TImage >
ImageIndexType itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::m_TempIndex [mutable, private]

Definition at line 341 of file itkJointDomainImageToListSampleAdaptor.h.

template<class TImage >
PointType itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::m_TempPoint [mutable, private]

Definition at line 340 of file itkJointDomainImageToListSampleAdaptor.h.

Definition at line 342 of file itkJointDomainImageToListSampleAdaptor.h.

template<class TImage >
MeasurementVectorType itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::m_TempVector [mutable, private]

Definition at line 339 of file itkJointDomainImageToListSampleAdaptor.h.

template<class TImage >
bool itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::m_UsePixelContainer [private]

Definition at line 344 of file itkJointDomainImageToListSampleAdaptor.h.

the number of components in a measurement vector

Definition at line 121 of file itkJointDomainImageToListSampleAdaptor.h.

template<class 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: