Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

/home/glehmann/rpm/BUILD/InsightToolkit-2.8.1/Code/Common/itkVectorImage.h Class Reference

#include <itkVectorImage.h>


Detailed Description

Templated n-dimensional vector image class.

This class differs from Image in that it is intended to represent multiple images. Each pixel represents k measurements, each of datatype TPixel. The memory organization of the resulting image is as follows: ... Pi0 Pi1 Pi2 Pi3 P(i+1)0 P(i+1)1 P(i+1)2 P(i+1)3 P(i+2)0 ... where Pi0 represents the 0th measurement of the pixel at index i.

Conceptually, a VectorImage< double, 3 > is the same as a Image< VariableLengthVector< double >, 3 >. The difference lies in the memory organization. The latter results in a fragmented organization with each location in the Image holding a pointer to an VariableLengthVector holding the actual pixel. The former stores the k pixels instead of a pointer reference, which apart from avoiding fragmentation of memory also avoids storing a 8 bytes of pointer reference for each pixel. The parameter k can be set using SetVectorLength.

The API of the class is such that it returns a pixeltype VariableLengthVector< double > when queried, with the data internally pointing to the buffer. (the container does not manage the memory). Similarly SetPixel calls can be made with VariableLengthVector< double >.

The API of this class is similar to Image.


When using Iterators on this image, you cannot use the it.Value(). You must use Set/Get() methods instead. \note This work is part of the National Alliance for Medical Image Computing (NAMIC), funded by the National Institutes of Health through the NIH Roadmap for Medical Research, Grant U54 EB005149. \sa DefaultVectorPixelAccessor \sa DefaultVectorPixelAccessorFunctor \sa VectorImageToImagePixelAccessor \sa VectorImageToImageAdaptor \sa Image \sa ImportImageContainer The documentation for this class was generated from the following file:
Generated at Fri Sep 8 04:26:58 2006 for ITK by doxygen 1.4.7 written by Dimitri van Heesch, © 1997-2000