Look at vtkDiscreteMarchingCubes. It works with labelled volume data
rather than grayscale data. Once you have extracted the selected label,
you can smooth the resulting mesh with vtkWindowedSincPolyDataFilter. <br>
<br>
Bill<br>
<br>
<br>
<div><span class="gmail_quote">On 10/5/06, <b class="gmail_sendername">Goodwin Lawlor</b> <<a href="mailto:goodwin.lawlor@ucd.ie">goodwin.lawlor@ucd.ie</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<a href="mailto:kdsfinger@gmail.com">kdsfinger@gmail.com</a> wrote:<br>> hi, all<br>> Assuming I have two neighboring regions, marked as 1 and 2 and the<br>> background is 0. I want to find the contour surface of each region.
<br>> How can I get the contour surface of the region marked as 1? When I<br>> use the surface extraction or marching cube methods, I always get the<br>> contour of (1 And 2) when I tried to find the contour of region marked
<br>> as 1. There is no problem to get the contour of region marked as 2.<br>> Thanks for comments.<br>> zl2k<br><br>The answer to that was from the old frog example, still here on the web:<br><a href="http://dit.lbl.gov/VTK/GlCache/vtk.cache/examplesTcl/frog/segmented8.tcl">
http://dit.lbl.gov/VTK/GlCache/vtk.cache/examplesTcl/frog/segmented8.tcl</a><br><br>You threshold the segmentation mask to give you a new binary (as in b&w)<br>volume containing only the region you want to isocontour. For example:
<br><br>vtkImageThreshold selectTissue<br>     selectTissue ThresholdBetween $TISSUE $TISSUE<br>     selectTissue SetInValue 255<br>     selectTissue SetOutValue 0<br><br>To extract a region of value 1, just set TISSUE to 1. Marching cubes
<br>then extracts your surface with a value of 127.5<br><br>Its worth looking at the full example above.<br><br>hth<br><br>Goodwin<br><br>_______________________________________________<br>This is the private VTK discussion list.
<br>Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers">
http://www.vtk.org/mailman/listinfo/vtkusers</a><br></blockquote></div><br>