[Insight-users] fastest way to get image voxels(pixels) within an itkMesh ?

Dan Mueller dan.muel at gmail.com
Thu Jun 25 06:24:30 EDT 2009


Hi Greg,

You could try rasterizing your mesh, then iterating over the image
considering only values under the raster mask. Further, you could
constrict the iteration to the bounding box of the raster mask. If
your mesh consists of triangles, you can use
itkTriangleMeshToImageFilter to create a binary image mask.

If rasterizing the mesh is already too slow, I'm not sure what else
you could do...

Some more information regarding your specific problem might also help
discover solutions "outside the box".

Hope this helps.

Regards, Dan

2009/6/25 gregthom <gregthom99 at yahoo.com>:
>
> Greetings
>
> This is more of a design help question. I have an itkMesh and and itkImage
> in the same frame of reference. I need to get the image values of all image
> voxels(pixels) bounded by the itkMesh. Anybody have any thoughts on how to
> achieve this ? What is the fastest way to achieve this ?
>
> Thank you
>
>
> greg
> --
> View this message in context: http://www.nabble.com/fastest-way-to-get-image-voxels%28pixels%29-within-an-itkMesh---tp24199751p24199751.html
> Sent from the ITK - Users mailing list archive at Nabble.com.
>
> _____________________________________
> 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
>


More information about the Insight-users mailing list