Proposals:VectorImage
From KitwarePublic
Jump to navigationJump to search
ITK: Vector Image
Create a templated n-dimensional vector image class.
This class differs from Image in that it is intended to represent multiple images. Each pixel represents \e k measurements, each of datatype \e 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< Array< 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 \c Array holding the actual pixel. The former stores the \e k pixels instead of a pointer reference. The parameter \e k can be set at run time.