[vtkusers] Volume extraction
Dženan Zukić
dzenanz at gmail.com
Fri Nov 15 04:58:00 EST 2013
What do you mean by extract? Clip the image - set to 0 all values outside
the mesh, and perhaps resize the image to the non-zero bounding box? Or
clip the polygonal mesh such that triangles outside some bounding box are
removed from the mesh?
In the first case you should start by looking at the appropriate
example<http://www.vtk.org/Wiki/VTK/Examples/Cxx/ImageData/ExtractVOI>.
To create voxel mask of the closed surface, take a look at this
example<http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataToImageData>.
Then you can multiply voxel mask with image values to get a clipped volume.
In the second case, you should consider
http://www.vtk.org/doc/nightly/html/classvtkClipPolyData.html or
http://www.vtk.org/doc/nightly/html/classvtkExtractGeometry.html
On Fri, Nov 15, 2013 at 9:11 AM, Massinissa Bandou <
Massinissa.Bandou at usherbrooke.ca> wrote:
> Hello VTK!!
>
> I used vtkMarchingCubes to generate an isosurface of a region of a volume
> and I'm wondering how can I use vtkExtractVOI or something else to extract
> the volume within a closed isosurface.
>
> thank you for your help!
>
> Massi
>
> <http://vtk.1045678.n5.nabble.com/file/n5724460/test.png>
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Volume-extraction-tp5724460.html
> Sent from the VTK - 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 VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20131115/aae3f254/attachment.htm>
More information about the vtkusers
mailing list