[Insight-users] Access voxel coordinates

Luis Ibanez luis.ibanez at kitware.com
Tue Jun 30 13:45:41 EDT 2009


Gabriela,

You don't need to use ImageVoxel.

Please follow Charlotte's advice and use

     image->TransformIndexToPhysicalPoint( index, point )

You will find more information about this in the
ITK Software Guide

   http://www.itk.org/ItkSoftwareGuide.pdf

in the "Data Representation" chapter


Regards,


       Luis


----------------------------------------------------------------------------
On Thu, Jun 25, 2009 at 12:44 PM, Charlotte Curtis <c.f.curtis at gmail.com>wrote:

> On Wed, Jun 24, 2009 at 12:07 PM, Gabriela de
> Miranda<gabrielademiranda at gmail.com> wrote:
> > Hi all!
> > I need to access the coordinates x, y and z of a voxel.
>
> How are you getting the information about which voxel?  Do you know
> the index?  If so, you can just use
> itk::Image::TransformIndexToPhysicalPoint.  If you don't know the
> index, you can use an iterator (with index) to find the voxels you
> need.
>
> > I guess that the class ImageVoxel is exactly what i need..
> > How can I use it?
>
> I don't think you're supposed to use that class directly, but I'm not
> sure on that one.
>
> Good luck,
>
> Charlotte
> _____________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090630/7fbd3685/attachment.htm>


More information about the Insight-users mailing list