<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">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?</div>
<div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">In the first case you should start by looking at the appropriate <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/ImageData/ExtractVOI">example</a>. To create voxel mask of the closed surface, take a look at this <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataToImageData">example</a>. Then you can multiply voxel mask with image values to get a clipped volume.</div>
<div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">In the second case, you should consider <a href="http://www.vtk.org/doc/nightly/html/classvtkClipPolyData.html" style="font-family:arial">http://www.vtk.org/doc/nightly/html/classvtkClipPolyData.html</a> or <a href="http://www.vtk.org/doc/nightly/html/classvtkExtractGeometry.html" style="font-family:arial">http://www.vtk.org/doc/nightly/html/classvtkExtractGeometry.html</a></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 15, 2013 at 9:11 AM, Massinissa Bandou <span dir="ltr"><<a href="mailto:Massinissa.Bandou@usherbrooke.ca" target="_blank">Massinissa.Bandou@usherbrooke.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello VTK!!<br>
<br>
I used vtkMarchingCubes to generate an isosurface of a region of a volume<br>
and I'm wondering how can I use vtkExtractVOI or something else to extract<br>
the volume within a closed isosurface.<br>
<br>
thank you for your help!<br>
<br>
Massi<br>
<br>
<<a href="http://vtk.1045678.n5.nabble.com/file/n5724460/test.png" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5724460/test.png</a>><br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Volume-extraction-tp5724460.html" target="_blank">http://vtk.1045678.n5.nabble.com/Volume-extraction-tp5724460.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div>