[Insight-users] How to get the image dimension and pixel type
Luis Ibanez
luis.ibanez at kitware.com
Thu Feb 12 11:13:38 EST 2009
Hi Wei,
Please look at the Insight Journal paper:
http://www.insight-journal.org/browse/publication/146
You will now find this Image IO helper classes under
InsightApplications/Auxiliary/vtk
as
vtkKWImage.cxx
vtkKWImage.h
vtkKWImageIO.cxx
vtkKWImageIO.h
In your case, you don't really need the ITK-VTK interface part,
but, looking at the code will help you see how you can write
Readers and Writers that can manage multiple pixel types and
image dimensions.
Regads,
Luis
------------------------
Wei-Dong Lian wrote:
> 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
>
>
> ------------------------------------------------------------------------
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ITK FAQ at: http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
More information about the Insight-users
mailing list