[Insight-users] Access voxel coordinates

Charlotte Curtis c.f.curtis at gmail.com
Thu Jun 25 12:44:37 EDT 2009


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


More information about the Insight-users mailing list