[Insight-users] How t oextract a pointer to ITK image data

Luis Ibanez luis.ibanez at kitware.com
Sat Oct 28 11:49:21 EDT 2006


Hi Prename Surname,

Please read the Tutorials:

    http://www.itk.org/HTML/Tutorials.htm

In particular:

    "Getting Started II: Using ITK with VTK"
http://www.itk.org/CourseWare/Training/GettingStarted-II.pdf

and

    "Getting Started V: Integrating ITK in your Application."
http://www.itk.org/CourseWare/Training/GettingStarted-V.pdf


The first one describes how to convert ITK images into VTK images.

You will find examples in the directory:

       InsightApplications/Auxiliary/vtk/

itkReadITKImage3DSegmentShowVTK.cxx
itkReadITKImageSegmentShowVTK.cxx
itkReadITKImageShowSplineVTK.cxx
itkReadITKImageShowVTK.cxx


The second one describes multiple options for passing ITK image
data to and from applications that use pointers to the pixel
buffer.


Please not that you must make sure that the memory is relased
correctly once you are done with the image.


    Regards,


      Luis


----------------------------
Prename Surname wrote:
> Hello. I have an itk::Image objekt where i want to be able to get a 
> pointer to the data, so that i can send this pointer as a parameter to 
> my dll function, which
> implements rendering using VTK.
>  
> The only problem is how i can transport the data, and it seems that a 
> raw datapointer is the best solution.
>  
> How can i retrieve that?
> Many regards
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users


More information about the Insight-users mailing list