ITK  4.2.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 Types inherited from itk::Statistics::ListSample< ImageJointDomainTraits< TImage >::MeasurementVectorType >
typedef std::vector
< MeasurementVectorType
InternalDataContainerType
- Public Types inherited from itk::Statistics::Sample< ImageJointDomainTraits< TImage >::MeasurementVectorType >
- Public Types inherited from itk::DataObject
typedef std::string DataObjectIdentifierType
typedef std::vector< Pointer >
::size_type 
DataObjectPointerArraySizeType
- Public Types inherited from itk::Object
- Public Types inherited from itk::LightObject

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 ()
- Public Member Functions inherited from itk::Statistics::ListSample< ImageJointDomainTraits< TImage >::MeasurementVectorType >
void Clear ()
virtual void Graft (const DataObject *thatObject)
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)
- Public Member Functions inherited from itk::Statistics::Sample< ImageJointDomainTraits< TImage >::MeasurementVectorType >
virtual AbsoluteFrequencyType GetFrequency (InstanceIdentifier id) const =0
virtual const
MeasurementVectorType
GetMeasurementVector (InstanceIdentifier id) const =0
virtual MeasurementVectorSizeType GetMeasurementVectorSize () const
virtual void SetMeasurementVectorSize (MeasurementVectorSizeType s)
- Public Member Functions inherited from itk::DataObject
virtual void CopyInformation (const DataObject *)
virtual void DataHasBeenGenerated ()
void DisconnectPipeline ()
bool GetDataReleased () const
virtual const bool & GetReleaseDataFlag ()
SmartPointerForwardReference
< ProcessObject
GetSource () const
DataObjectPointerArraySizeType GetSourceOutputIndex () const
const DataObjectIdentifierTypeGetSourceOutputName () const
virtual unsigned long GetUpdateMTime () const
virtual void Initialize ()
virtual void PrepareForNewData ()
virtual void PropagateRequestedRegion ()
void ReleaseData ()
virtual void ReleaseDataFlagOff ()
virtual void ReleaseDataFlagOn ()
virtual bool RequestedRegionIsOutsideOfTheBufferedRegion ()
virtual void ResetPipeline ()
void SetReleaseDataFlag (bool flag)
virtual void SetRequestedRegion (const DataObject *)
virtual void SetRequestedRegionToLargestPossibleRegion ()
bool ShouldIReleaseData () const
virtual void Update ()
virtual void UpdateOutputData ()
virtual void UpdateOutputInformation ()
virtual bool VerifyRequestedRegion ()
void SetPipelineMTime (unsigned long time)
virtual const unsigned long & GetPipelineMTime ()
virtual void SetRealTimeStamp (RealTimeStamp _arg)
virtual const RealTimeStampGetRealTimeStamp ()
- 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
MetaDataDictionaryGetMetaDataDictionary (void)
const MetaDataDictionaryGetMetaDataDictionary (void) const
virtual unsigned long GetMTime () 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
void RemoveAllObservers ()
void RemoveObserver (unsigned long tag)
void SetDebug (bool debugFlag) const
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
virtual void SetReferenceCount (int)
virtual void UnRegister () const
- 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 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 ()
- Protected Member Functions inherited from itk::Statistics::ListSample< ImageJointDomainTraits< TImage >::MeasurementVectorType >
 ListSample ()
virtual ~ListSample ()
- Protected Member Functions inherited from itk::Statistics::Sample< ImageJointDomainTraits< TImage >::MeasurementVectorType >
 Sample ()
virtual ~Sample ()
- Protected Member Functions inherited from itk::DataObject
virtual void PropagateResetPipeline ()
 DataObject ()
 ~DataObject ()
- 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 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

template<class TImage >
typedef Superclass::AbsoluteFrequencyType itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::AbsoluteFrequencyType

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.

template<class TImage >
typedef Superclass::InstanceIdentifier itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::InstanceIdentifier

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.

template<class TImage >
typedef Superclass::MeasurementVectorSizeType itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::MeasurementVectorSizeType

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.

template<class TImage >
typedef Superclass::TotalAbsoluteFrequencyType itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::TotalAbsoluteFrequencyType

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 ( )
inlineprotectedvirtual

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 >
AbsoluteFrequencyType itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::GetFrequency ( InstanceIdentifier  id) const
template<class TImage >
const TImage* itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::GetImage ( ) const

Method to get the image

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

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 >
TotalAbsoluteFrequencyType itk::Statistics::JointDomainImageToListSampleAdaptor< TImage >::GetTotalFrequency ( ) const
virtual
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
protectedvirtual

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

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

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

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

Definition at line 343 of file itkJointDomainImageToListSampleAdaptor.h.

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

Definition at line 338 of file itkJointDomainImageToListSampleAdaptor.h.

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

Definition at line 346 of file itkJointDomainImageToListSampleAdaptor.h.

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

Definition at line 341 of file itkJointDomainImageToListSampleAdaptor.h.

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

Definition at line 340 of file itkJointDomainImageToListSampleAdaptor.h.

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

Definition at line 342 of file itkJointDomainImageToListSampleAdaptor.h.

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

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.

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