[Insight-users] about getting the c-style array from itk::image

Luis Ibanez luis.ibanez at kitware.com
Tue Apr 18 10:51:00 EDT 2006


HI Yixun,

Please read the Tutorials:

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

in particular:

http://www.itk.org/CourseWare/Training/GettingStarted-V.pdf


Once you have created your image,
you can get access to the C-Style
array by calling


      image->GetBufferPointer()


Note that you should *NOT* modify the
array, if you take it from the output
of a Filter.


  Regards,


    Luis


----------------
Yixun Liu wrote:
> Hi,
>  
> I intend to get the c-style array from itk::image. I do not know how to 
> do it.
>  
> Regards,
>  
> Yixun Liu
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> 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