[Insight-users] How to get the image dimension and pixel type

Wei-Dong Lian weidong.lian at gmail.com
Thu Feb 12 05:41:30 EST 2009


Hello everyone,

I am a new user in ITK. When we define itk::Image<>, we need the image
dimension and pixel type.
For me, I just want to read some images, including 2D and 3D.
So I want to previously get the image dimension and pixel type information
dynamically. Like this, I can deal with the image as a regular way, no
matter what dimension and what pixel type it is. My image processing
algorithm is realized based on template, so it can be used for 2D, 3D.
Can anyone give me some suggestions for this.
Thanks in advance.
Weidong
ECN
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090212/8a3c1db2/attachment.htm>


More information about the Insight-users mailing list