#include <itkImageAdaptor.h>
Inheritance diagram for itk::ImageAdaptor:
Public Types | |
typedef ImageAdaptor | Self |
typedef ImageBase< itkGetStaticConstMacro(ImageDimension) | Superclass ) |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
typedef TImage | InternalImageType |
typedef TAccessor::ExternalType | PixelType |
typedef TAccessor::InternalType | InternalPixelType |
typedef TAccessor | AccessorType |
typedef Index< itkGetStaticConstMacro(ImageDimension) | IndexType ) |
typedef IndexType::IndexValueType | IndexValueType |
typedef Size< itkGetStaticConstMacro(ImageDimension) | SizeType ) |
typedef SizeType::SizeValueType | SizeValueType |
typedef Offset< itkGetStaticConstMacro(ImageDimension) | OffsetType ) |
typedef OffsetType::OffsetValueType | OffsetValueType |
typedef ImageRegion< itkGetStaticConstMacro(ImageDimension) | RegionType ) |
typedef TImage::PixelContainer | PixelContainer |
typedef TImage::PixelContainerPointer | PixelContainerPointer |
typedef InternalPixelType * | InternalPixelPointerType |
Public Methods | |
itkStaticConstMacro (ImageDimension, unsigned int, TImage::ImageDimension) | |
virtual const char * | GetClassName () const |
virtual void | SetLargestPossibleRegion (const RegionType ®ion) |
virtual void | SetBufferedRegion (const RegionType ®ion) |
virtual void | SetRequestedRegion (const RegionType ®ion) |
virtual void | SetRequestedRegion (DataObject *data) |
virtual const RegionType & | GetRequestedRegion () const |
virtual const RegionType & | GetLargestPossibleRegion () const |
virtual const RegionType & | GetBufferedRegion () const |
void | Allocate () |
virtual void | Initialize () |
void | SetPixel (const IndexType &index, const PixelType &value) |
PixelType | GetPixel (const IndexType &index) const |
PixelType | operator[] (const IndexType &index) const |
const OffsetValueType * | GetOffsetTable () const |
IndexType | ComputeIndex (OffsetValueType offset) const |
PixelContainerPointer | GetPixelContainer () |
void | SetPixelContainer (PixelContainer *container) |
virtual const double * | GetSpacing () const |
virtual const double * | GetOrigin () const |
virtual void | SetImage (TImage *) |
virtual void | Modified () const |
virtual unsigned long | GetMTime () const |
AccessorType & | GetPixelAccessor (void) |
const AccessorType & | GetPixelAccessor (void) const |
InternalPixelType * | GetBufferPointer () |
const InternalPixelType * | GetBufferPointer () const |
void | GetBufferPointer2 (InternalPixelPointerType &) |
virtual void | SetSpacing (const double values[TImage::ImageDimension]) |
virtual void | SetSpacing (const float values[TImage::ImageDimension]) |
virtual void | SetOrigin (const double values[TImage::ImageDimension]) |
virtual void | SetOrigin (const float values[TImage::ImageDimension]) |
virtual void | Update () |
virtual void | UpdateOutputInformation () |
virtual void | SetRequestedRegionToLargestPossibleRegion () |
virtual void | CopyInformation (const DataObject *data) |
Static Public Methods | |
Pointer | New () |
Protected Methods | |
ImageAdaptor () | |
virtual | ~ImageAdaptor () |
void | PrintSelf (std::ostream &os, Indent indent) const |
ImageAdaptors are templated over the ImageType and over a functor that will specify what part of the pixel can be accessed
The basic aspects of this class are the types it defines.
Image adaptors can be used as intermediate classes that allow to send an image to a filter, specifying what part of the image pixels will the filter act on.
The TAccessor class should implement the Get and Set methods as static methods. These two will specify how data can be put and get from parts of each pixel. It should define the types ExternalType and InternalType too.
Definition at line 47 of file itkImageAdaptor.h.
|
Accessor type that convert data between internal and external representations. Definition at line 82 of file itkImageAdaptor.h. |
|
|
Index typedef support. An index is used to access pixel values. Reimplemented from itk::ImageBase< ::itk::GetImageDimension< TImage >::ImageDimension >. Definition at line 85 of file itkImageAdaptor.h. |
|
Reimplemented from itk::ImageBase< ::itk::GetImageDimension< TImage >::ImageDimension >. Definition at line 86 of file itkImageAdaptor.h. |
|
Typedef of unadapted image Definition at line 67 of file itkImageAdaptor.h. |
|
Convenient typedef. Definition at line 189 of file itkImageAdaptor.h. |
|
Pixel typedef support. Used to declare pixel type in filters or other operations. Definition at line 78 of file itkImageAdaptor.h. |
|
Offset typedef support. Reimplemented from itk::ImageBase< ::itk::GetImageDimension< TImage >::ImageDimension >. Definition at line 93 of file itkImageAdaptor.h. |
|
Reimplemented from itk::ImageBase< ::itk::GetImageDimension< TImage >::ImageDimension >. Definition at line 94 of file itkImageAdaptor.h. |
|
PixelContainer typedef support. Used to construct a container for the pixel data. Definition at line 177 of file itkImageAdaptor.h. |
|
Definition at line 178 of file itkImageAdaptor.h. |
|
Pixel typedef support. Used to declare pixel type in filters or other operations. Reimplemented in itk::AddImageAdaptor< TImage >. Definition at line 74 of file itkImageAdaptor.h. |
|
|
Region typedef support. A region is used to specify a subset of an image. Reimplemented from itk::ImageBase< ::itk::GetImageDimension< TImage >::ImageDimension >. Definition at line 98 of file itkImageAdaptor.h. |
|
|
Size typedef support. A size is used to define region bounds. Reimplemented from itk::ImageBase< ::itk::GetImageDimension< TImage >::ImageDimension >. Definition at line 89 of file itkImageAdaptor.h. |
|
Reimplemented from itk::ImageBase< ::itk::GetImageDimension< TImage >::ImageDimension >. Definition at line 90 of file itkImageAdaptor.h. |
|
|
|
|
|
|
Allocate the image memory. Dimension and Size must be set a priori. |
|
Reimplemented from itk::ImageBase< ::itk::GetImageDimension< TImage >::ImageDimension >. |
|
Return the Data Accesor object Reimplemented from itk::ImageBase< ::itk::GetImageDimension< TImage >::ImageDimension >. |
|
Get the region object that defines the size and starting index of the region of the image currently loaded in memory. This method overloads the one in ImageBase in order to delegate to the adapted image.
Reimplemented from itk::ImageBase< ::itk::GetImageDimension< TImage >::ImageDimension >. |
|
Return a pointer to the beginning of the buffer. This is used by the image iterator class. |
|
Return a pointer to the beginning of the buffer. This is used by the image iterator class. |
|
Return a pointer to the beginning of the buffer. This is used by the image iterator class. |
|
|
Get the region object that defines the size and starting index for the largest possible region this image could represent. This is used in determining how much memory would be needed to load an entire dataset. It is also used to determine boundary conditions. This method overloads the one in ImageBase in order to delegate to the adapted image.
Reimplemented from itk::ImageBase< ::itk::GetImageDimension< TImage >::ImageDimension >. |
|
Delegate GetMTime to the Internal Image Reimplemented from itk::Object. |
|
Get the OffsetTable from the adapted image Reimplemented from itk::ImageBase< ::itk::GetImageDimension< TImage >::ImageDimension >. |
|
Get the origin of the image. The origin is the geometric coordinates of the image origin. The value returned is a pointer to a double array.
Reimplemented from itk::ImageBase< ::itk::GetImageDimension< TImage >::ImageDimension >. |
|
Get a pixel (read only version) Definition at line 162 of file itkImageAdaptor.h. |
|
Return the Data Accesor object Definition at line 234 of file itkImageAdaptor.h. |
|
Return the Data Accesor object Definition at line 230 of file itkImageAdaptor.h. |
|
Return a pointer to the container. Definition at line 181 of file itkImageAdaptor.h. |
|
Get the region object that defines the size and starting index for the region of the image requested (i.e., the region of the image to be operated on by a filter). This method overloads the one in ImageBase in order to delegate to the adapted image.
Reimplemented from itk::ImageBase< ::itk::GetImageDimension< TImage >::ImageDimension >. |
|
Get the spacing (size of a pixel) of the image. The spacing is the geometric distance between image samples. The value returned is a pointer to a double array.
Reimplemented from itk::ImageBase< ::itk::GetImageDimension< TImage >::ImageDimension >. |
|
Restore the data object to its initial state. This means releasing memory. Reimplemented from itk::ImageBase< ::itk::GetImageDimension< TImage >::ImageDimension >. |
|
Dimension of the image. This constant is used by functions that are templated over image type (as opposed to being templated over pixel type and dimension) when they need compile time access to the dimension of the image. |
|
Delegate Modified to the Internal Image Reimplemented from itk::Object. |
|
|
Access a pixel. This version can only be an rvalue. Definition at line 166 of file itkImageAdaptor.h. |
|
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::ImageBase< ::itk::GetImageDimension< TImage >::ImageDimension >. |
|
Set the region object that defines the size and starting index of the region of the image currently load in memory.
Reimplemented from itk::ImageBase< ::itk::GetImageDimension< TImage >::ImageDimension >. |
|
Set Internal Image |
|
Set the region object that defines the size and starting index for the largest possible region this image could represent. This is used in determining how much memory would be needed to load an entire dataset. It is also used to determine boundary conditions.
Reimplemented from itk::ImageBase< ::itk::GetImageDimension< TImage >::ImageDimension >. |
|
Set the origin of the image. |
|
Set the origin of the image. |
|
Set a pixel. Definition at line 158 of file itkImageAdaptor.h. |
|
Set the container to use. Note that this does not cause the DataObject to be modified. |
|
Set the requested region from this data object to match the requested region of the data object passed in as a parameter. This method implements the API from DataObject. The data object parameter must be castable to an ImageBase. Reimplemented from itk::ImageBase< ::itk::GetImageDimension< TImage >::ImageDimension >. |
|
Set the region object that defines the size and starting index for the region of the image requested.
Reimplemented from itk::ImageBase< ::itk::GetImageDimension< TImage >::ImageDimension >. |
|
Return the Data Accesor object Reimplemented from itk::ImageBase< ::itk::GetImageDimension< TImage >::ImageDimension >. |
|
Set the spacing (size of a pixel) of the image. |
|
Set the spacing (size of a pixel) of the image. |
|
Return the Data Accesor object Reimplemented from itk::DataObject. |
|
Return the Data Accesor object Reimplemented from itk::ImageBase< ::itk::GetImageDimension< TImage >::ImageDimension >. |