#include <itkImageAdaptor.h>
Inheritance diagram for itk::ImageAdaptor< TImage, TAccessor >:


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 the sending of an image to a filter, specifying what part of the image pixels the filter will act on.
The TAccessor class should implement the Get and Set 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 48 of file itkImageAdaptor.h.
Public Types | |
| typedef DefaultPixelAccessorFunctor< Self > | AccessorFunctorType |
| typedef TAccessor | AccessorType |
| typedef SmartPointer< const Self > | ConstPointer |
| typedef WeakPointer< const Self > | ConstWeakPointer |
| typedef Superclass::IndexType | IndexType |
| typedef IndexType::IndexValueType | IndexValueType |
| typedef TImage | InternalImageType |
| typedef InternalPixelType * | InternalPixelPointerType |
| typedef TAccessor::InternalType | InternalPixelType |
| typedef PixelType | IOPixelType |
| typedef Superclass::OffsetType | OffsetType |
| typedef OffsetType::OffsetValueType | OffsetValueType |
| typedef TImage::PixelContainer | PixelContainer |
| typedef TImage::PixelContainerConstPointer | PixelContainerConstPointer |
| typedef TImage::PixelContainerPointer | PixelContainerPointer |
| typedef TAccessor::ExternalType | PixelType |
| typedef SmartPointer< Self > | Pointer |
| typedef Superclass::PointType | PointType |
| typedef Superclass::RegionType | RegionType |
| typedef ImageAdaptor | Self |
| typedef Superclass::SizeType | SizeType |
| typedef SizeType::SizeValueType | SizeValueType |
| typedef Superclass::SpacingType | SpacingType |
| typedef ImageBase< itkGetStaticConstMacro(ImageDimension) | Superclass ) |
Public Member Functions | |
| void | Allocate () |
| IndexType | ComputeIndex (OffsetValueType offset) const |
| virtual void | CopyInformation (const DataObject *data) |
| virtual const RegionType & | GetBufferedRegion () const |
| const InternalPixelType * | GetBufferPointer () const |
| Return a pointer to the beginning of the buffer This is used by *the image iterator class *InternalPixelType * | GetBufferPointer () |
| virtual const RegionType & | GetLargestPossibleRegion () const |
| virtual unsigned long | GetMTime () const |
| virtual const char * | GetNameOfClass () const |
| const OffsetValueType * | GetOffsetTable () const |
| virtual const PointType & | GetOrigin () const |
| PixelType | GetPixel (const IndexType &index) const |
| const AccessorType & | GetPixelAccessor (void) const |
| AccessorType & | GetPixelAccessor (void) |
| PixelContainerPointer | GetPixelContainer () |
| virtual const RegionType & | GetRequestedRegion () const |
| virtual const SpacingType & | GetSpacing () const |
| virtual void | Graft (const DataObject *data) |
| virtual void | Initialize () |
| itkStaticConstMacro (ImageDimension, unsigned int, TImage::ImageDimension) | |
| virtual void | Modified () const |
| PixelType | operator[] (const IndexType &index) const |
| virtual void | PropagateRequestedRegion () throw (InvalidRequestedRegionError) |
| virtual void | SetBufferedRegion (const RegionType ®ion) |
| virtual void | SetImage (TImage *) |
| virtual void | SetLargestPossibleRegion (const RegionType ®ion) |
| virtual void | SetOrigin (const float *values) |
| virtual void | SetOrigin (const double *values) |
| Set the origin of the image *virtual void | SetOrigin (const PointType values) |
| void | SetPixel (const IndexType &index, const PixelType &value) |
| void | SetPixelAccessor (const AccessorType &accessor) |
| void | SetPixelContainer (PixelContainer *container) |
| virtual void | SetRequestedRegion (DataObject *data) |
| virtual void | SetRequestedRegion (const RegionType ®ion) |
| virtual void | SetRequestedRegionToLargestPossibleRegion () |
| virtual void | SetSpacing (const float *values) |
| virtual void | SetSpacing (const double *values) |
| Set the | spacing (size of a pixel) of the image.*/virtual void SetSpacing(const SpacingType values) |
| Return the Data Accesor object *virtual void | Update () |
| virtual void | UpdateOutputData () |
| Methods to update the pipeline Called internally by the *pipeline mechanism *virtual void | UpdateOutputInformation () |
| virtual bool | VerifyRequestedRegion () |
Static Public Member Functions | |
| static Pointer | New () |
Protected Member Functions | |
| ImageAdaptor () | |
| void | PrintSelf (std::ostream &os, Indent indent) const |
| virtual | ~ImageAdaptor () |
|
|||||
|
typedef of the functor that chooses the appropriate accessor Image or VectorImage. Definition at line 90 of file itkImageAdaptor.h. |
|
|||||
|
Accessor type that convert data between internal and external representations. Definition at line 86 of file itkImageAdaptor.h. |
|
|||||
|
|||||
|
Definition at line 63 of file itkImageAdaptor.h. |
|
|||||
|
Index typedef support. An index is used to access pixel values. Definition at line 93 of file itkImageAdaptor.h. |
|
|||||
|
Definition at line 94 of file itkImageAdaptor.h. |
|
|||||
|
Typedef of unadapted image Definition at line 66 of file itkImageAdaptor.h. |
|
|||||
|
Convenient typedef. Definition at line 218 of file itkImageAdaptor.h. |
|
|||||
|
Pixel typedef support. Used to declare pixel type in filters or other operations. Definition at line 80 of file itkImageAdaptor.h. |
|
|||||
|
Reimplemented in itk::VectorImageToImageAdaptor. Definition at line 82 of file itkImageAdaptor.h. |
|
|||||
|
Offset typedef support. Definition at line 101 of file itkImageAdaptor.h. |
|
|||||
|
Definition at line 102 of file itkImageAdaptor.h. |
|
|||||
|
PixelContainer typedef support. Used to construct a container for the pixel data. Reimplemented in itk::RGBToVectorImageAdaptor< TImage >, itk::VectorImageToImageAdaptor, and itk::VectorToRGBImageAdaptor< TImage >. Definition at line 193 of file itkImageAdaptor.h. |
|
|||||
|
Reimplemented in itk::RGBToVectorImageAdaptor< TImage >, itk::VectorImageToImageAdaptor, and itk::VectorToRGBImageAdaptor< TImage >. Definition at line 195 of file itkImageAdaptor.h. |
|
|||||
|
Reimplemented in itk::RGBToVectorImageAdaptor< TImage >, itk::VectorImageToImageAdaptor, and itk::VectorToRGBImageAdaptor< TImage >. Definition at line 194 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 72 of file itkImageAdaptor.h. |
|
|||||
|
|||||
|
Origin typedef support. The origin is the geometric coordinates of the index (0,0). Definition at line 114 of file itkImageAdaptor.h. |
|
|||||
|
Region typedef support. A region is used to specify a subset of an image. Definition at line 106 of file itkImageAdaptor.h. |
|
|||||
|
|||||
|
Size typedef support. A size is used to define region bounds. Definition at line 97 of file itkImageAdaptor.h. |
|
|||||
|
Definition at line 98 of file itkImageAdaptor.h. |
|
|||||
|
Spacing typedef support. Spacing holds the size of a pixel. The spacing is the geometric distance between image samples. Definition at line 110 of file itkImageAdaptor.h. |
|
|||||
|
|||||||||
|
|
|
|||||||||
|
|
|
|||||||||
|
Allocate the image memory. Dimension and Size must be set a priori. |
|
||||||||||
|
||||||||||
|
|
|
|||||||||
|
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. |
|
|||||||||
|
|
|
|||||||||
|
|
|
|||||||||
|
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.
|
|
|||||||||
|
Delegate GetMTime to the Internal Image |
|
|||||||||
|
|||||||||
|
Get the OffsetTable from the adapted image |
|
|||||||||
|
Get the origin of the image. The origin is the geometric coordinates of the image origin.
|
|
||||||||||
|
Get a pixel (read only version) Definition at line 178 of file itkImageAdaptor.h. |
|
||||||||||
|
Return the Data Accesor object Definition at line 262 of file itkImageAdaptor.h. |
|
||||||||||
|
Return the Data Accesor object Definition at line 258 of file itkImageAdaptor.h. |
|
|||||||||
|
Return a pointer to the container. Definition at line 198 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. |
|
|||||||||
|
Get the spacing (size of a pixel) of the image. The spacing is the geometric distance between image samples.
|
|
||||||||||
|
Graft the data and information from one image to another. This is a convenience method to setup a second image with all the meta information of another image and use the same pixel container. Note that this method is different than just using two SmartPointers to the same image since separate DataObjects are still maintained. This method is similar to ImageSource::GraftOutput(). The implementation in ImageBase simply calls CopyInformation() and copies the region ivars. The implementation here refers to the superclass' implementation and then copies over the pixel container. |
|
|||||||||
|
Restore the data object to its initial state. This means releasing memory. |
|
||||||||||||||||||||
|
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 |
|
|||||||||
|
||||||||||
|
Access a pixel. This version can only be an rvalue. Definition at line 182 of file itkImageAdaptor.h. |
|
||||||||||||||||
|
|
|
|||||||||
|
|
|
||||||||||
|
Set the region object that defines the size and starting index of the region of the image currently load in memory. |
|
||||||||||
|
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.
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||||||||
|
Set a pixel. Definition at line 174 of file itkImageAdaptor.h. |
|
||||||||||
|
Sets the Data Accesor object Definition at line 266 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. |
|
||||||||||
|
Set the region object that defines the size and starting index for the region of the image requested. |
|
|||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
|||||||||
|
|
|
|||||||||
|
|
|
|||||||||
|
|
|
|||||||||
|
|
1.4.2 written by Dimitri van Heesch,
© 1997-2000