[Insight-developers] Vector image pixel type ?

Karthik Krishnan Karthik.Krishnan at kitware.com
Wed Sep 7 17:01:48 EDT 2005


Hi Gordon,

The VectorImage supports all iterators that image supports and as you 
know has IO support .  So it can do anything that Image< Array < T >, N 
 > can do, (without fragmenting the memory)

What exactly do you intend using this image for ? 


1. Do you intend performing mathematical operations on this image ?

(For instance applying a linear filter, say Gaussian smoothing on 
VectorImage will require its PixelType to support mathematical operations.)

If you do then itk::Array  needs to support mathematical operators like 
+, *, etc...
I would just leave Array as is and create another Pixel type, similar to 
the array, since Array is intended to represent a collection of any N types.


Let me know what you think.

Regards
karthik


More information about the Insight-developers mailing list