[Insight-users] How to transfer ITK image to matrix or vector ?
Sergio Vera
sergio.vera at alma3d.com
Fri Aug 6 03:23:52 EDT 2010
Hi Guan Yang
Use a Iterator to read the voxels from your image and then,copy them into a
standard matrix
you can find the specific details in the chapter of the insight guide
devoted to iterators.
Sergio
On Fri, Aug 6, 2010 at 2:13 AM, Guang Yang <samggyy at gmail.com> wrote:
> Hi there,
>
> May I ask how to transfer ITK image to matrix or vector?
>
> I need to put ITK image pixels into a matrix form or put them in a vector.
> The image might be 3D images, then how to put all the voxels in a vector?
>
> Thanks.
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.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
>
>
--
Sergio Vera
Alma IT Systems
C/ Vilana, 4B, 4º 1ª
08022 Barcelona
T. (+34) 932 380 592
www.alma3d.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100806/c465292d/attachment-0001.htm>
More information about the Insight-users
mailing list