#include <itkImageToListAdaptor.h>
Inheritance diagram for itk::Statistics::ImageToListAdaptor:
Public Types | |
typedef ImageToListAdaptor | Self |
typedef ListSampleBase< typename TImage::PixelType > | Superclass |
typedef SmartPointer< Self > | Pointer |
typedef TImage | ImageType |
typedef ImageType::Pointer | ImagePointer |
typedef ImageType::IndexType | IndexType |
typedef ImageType::PixelType | PixelType |
typedef ImageType::PixelContainerPointer | PixelContainerPointer |
typedef ImageType::PixelContainer::ElementIdentifier | InstanceIdentifier |
typedef ImageRegionIterator< ImageType > | IteratorType |
typedef PixelTraits< typename TImage::PixelType > | PixelTraitsType |
typedef PixelTraitsType::ValueType | MeasurementType |
typedef PixelType | MeasurementVectorType |
typedef MeasurementVectorType | ValueType |
typedef Superclass::FrequencyType | FrequencyType |
Public Methods | |
virtual const char * | GetClassName () const |
itkStaticConstMacro (MeasurementVectorSize, unsigned int, PixelTraitsType::Dimension) | |
void | SetImage (ImagePointer image) |
ImagePointer | GetImage () |
unsigned int | Size () const |
unsigned int | Size (const unsigned int &dimension) const |
unsigned int | GetNumberOfInstances () const |
void | SetMeasurementVector (const InstanceIdentifier id, const MeasurementVectorType &measurementVector) |
MeasurementVectorType & | GetMeasurementVector (const InstanceIdentifier &id) |
void | SetMeasurement (const InstanceIdentifier &id, const unsigned int &dim, const MeasurementType &value) |
FrequencyType | GetFrequency (const InstanceIdentifier &id) const |
FrequencyType | GetTotalFrequency (const unsigned int &dimension) const |
Iterator | Begin () |
Iterator | End () |
Static Public Methods | |
Pointer | New () |
Protected Methods | |
ImageToListAdaptor () | |
virtual | ~ImageToListAdaptor () |
void | PrintSelf (std::ostream &os, Indent indent) const |
Friends | |
class | Iterator |
After calling SetImage(Image::Pointer) method to plug in the image object, users can use Sample interfaces to access Image data. However, the resulting data are a list of measurement vectors. The type of data is measurement vector. For example, if the pixel type of Image object is STL vector< float > and each pixel has two different types of measurements, intensity and gradient magnitude, this adaptor has measurement vector of type ITK Point< float, 2>, and one element of the Point is intensity and the other is gradient magnitude.
There are two concepts of dimensions for this container. One is for Image object, and the other is for measurement vector dimension. Only when using ITK Index to access data, the former concept is applicable Otherwise, dimensions means dimensions of measurement vectors.
From the above example, there were two elements in a pixel and each pixel provides [] operator for accessing its elements. However, in many cases, The pixel might be a scalar value such as int or float. In this case, The pixel doesn't support [] operator. To deal with this problem, This class has two companion classes, ScalarAccessor and VectorAccessor. If the pixel type is a scalar type, then you don't have change the third template argument. If you have pixel type is vector one and supports [] operator, then replace third argument with VectorAccessor
Definition at line 61 of file itkImageToListAdaptor.h.
|
Reimplemented from itk::Statistics::ListSampleBase< TImage::PixelType >. Definition at line 98 of file itkImageToListAdaptor.h. |
|
Definition at line 78 of file itkImageToListAdaptor.h. |
|
Image typedefs Definition at line 77 of file itkImageToListAdaptor.h. |
|
Definition at line 79 of file itkImageToListAdaptor.h. |
|
Reimplemented from itk::Statistics::ListSampleBase< TImage::PixelType >. Definition at line 83 of file itkImageToListAdaptor.h. |
|
Image Iterator typedef support Definition at line 86 of file itkImageToListAdaptor.h. |
|
Superclass typedefs for Measurement vector, measurement, Instance Identifier, frequency, size, size element value Reimplemented from itk::Statistics::ListSampleBase< TImage::PixelType >. Definition at line 95 of file itkImageToListAdaptor.h. |
|
Reimplemented from itk::Statistics::ListSampleBase< TImage::PixelType >. Definition at line 96 of file itkImageToListAdaptor.h. |
|
Definition at line 81 of file itkImageToListAdaptor.h. |
|
Definition at line 87 of file itkImageToListAdaptor.h. |
|
Definition at line 80 of file itkImageToListAdaptor.h. |
|
Reimplemented from itk::Statistics::Sample< TImage::PixelType >. Definition at line 68 of file itkImageToListAdaptor.h. |
|
Standard class typedefs Reimplemented from itk::Statistics::ListSampleBase< TImage::PixelType >. Definition at line 66 of file itkImageToListAdaptor.h. |
|
Reimplemented from itk::Statistics::ListSampleBase< TImage::PixelType >. Definition at line 67 of file itkImageToListAdaptor.h. |
|
Definition at line 97 of file itkImageToListAdaptor.h. |
|
Definition at line 205 of file itkImageToListAdaptor.h. |
|
Definition at line 206 of file itkImageToListAdaptor.h. |
|
Definition at line 129 of file itkImageToListAdaptor.h. |
|
Definition at line 135 of file itkImageToListAdaptor.h. |
|
Run-time type information (and related methods). Reimplemented from itk::Statistics::ListSampleBase< TImage::PixelType >. |
|
Implements itk::Statistics::Sample< TImage::PixelType >. |
|
Method to get the image |
|
Implements itk::Statistics::Sample< TImage::PixelType >. |
|
Implements itk::Statistics::Sample< TImage::PixelType >. |
|
Implements itk::Statistics::Sample< TImage::PixelType >. |
|
the number of components in a measurement vector |
|
Method for creation through the object factory. Reimplemented from itk::Object. |
|
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes. Reimplemented from itk::Statistics::Sample< TImage::PixelType >. |
|
Method to set the image |
|
|
|
|
|
Implements itk::Statistics::Sample< TImage::PixelType >. |
|
returns the number of measurement vectors in this container Implements itk::Statistics::Sample< TImage::PixelType >. |
|
Definition at line 127 of file itkImageToListAdaptor.h. |