[Insight-users] Format Image in ITK

Dan Mueller dan.muel at gmail.com
Fri Jul 3 06:53:12 EDT 2009


Hi Elena,

You might want to look at Examples/DataRepresentation/Image/Image5.cxx.

This example uses the itkImportImageFilter to import an external pixel array.

You will need:
 * pointer to pixel array
 * size
 * spacing
 * origin

HTH

Regards, Dan

2009/7/3 Elena Molina <elenam85 at gmail.com>:
> Hi,
> First of all, I´m working with DICOM images in an already programmed (C++)
> application. Now I want to introduce
> new features in this application and I´ll use ITK libraries.
> So... my problem now is how can I convert my image (actually I have my image
> in memory (3D) and I have the
> pointer to the first position of this image) in a compliant format for using
> it with ITK functions.
> I was reading in the getting started V how can I integrating ITK in my
> application and tried to do the same example but It
> didn´t work.
> How can I do it? Which parameters I need? Pointer in the first position,
> size... any more?
>
> Thankssssss
>
> _____________________________________
> 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