<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Luis Ibanez</b> <span dir="ltr">&lt;<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>&gt;</span><br>
Date: Sun, Aug 9, 2009 at 3:33 PM<br>Subject: Re: [Insight-users] regarding itk_snap segmentation<br>To: Taru S &lt;<a href="mailto:swork24@gmail.com">swork24@gmail.com</a>&gt;<br><br><br><br>Hi Taru,<br><br>The vtkContour filter is a much more evolved tool than the<br>
 itkBinaryMask3DMesh, so you may want to rely more on<br>that first filter.<br><br>You should be able to use either one for extracting surfaces<br>
of structures that are, at least, on pixel apart.<br><br>What are you planning to do with the extracted surfaces ?<br><br>If it is Visualization,<br>then you are better off using the vtkContour filter.<br><br><br>      Regards,<br>

<br><br>              Luis<br><br><br><div class="gmail_quote">--------------------------------------------------------------------------<div><div></div><div class="h5"><br>On Sun, Aug 9, 2009 at 2:53 PM, Taru S <span dir="ltr">&lt;<a href="mailto:swork24@gmail.com" target="_blank">swork24@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>Hello Luis,</div>
<div> </div>
<div>Thank you  for your guidance. I  will try the  approach you  have mentioned. </div>
<div> </div>
<div>I  tried another approach so far and have a question regarding that: </div>
<div><br>I extracted some of the iso-surfaces from my  segmented image using the vtk MarchingCubes(discrete) so far and am able to  show  the surface  meshes.</div>
<div>If I am not mistaken, this filter or the Contour filter  may not work for structures/labels with very close boundaries (i.e. there may be more than one structure with iso value &lt; iso value for a particular str). <br>


</div>
<div>I am confused about the best approach for implementing the required functionality. I  read  some of the posts which  mention about  using vtk filters(contour, marching cubes)  directly to  generate surface meshes. </div>



<div> </div>
<div>Is there any specific advantage of using one approach ( vtkMarching cube vs. itkBinaryMask3DMesh) over the other ? Also, would  it help solving the  above  problem with  close boundaries?</div>
<div> </div>
<div>I  will really appreciate your advise.</div>
<div> </div>
<div>Thank you,</div>
<div> </div>
<div>Regards,</div>
<div>Taru<br></div><div><div></div><div>
<div class="gmail_quote">On Sat, Aug 8, 2009 at 1:09 PM, Luis Ibanez <span dir="ltr">&lt;<a href="mailto:luis.ibanez@kitware.com" target="_blank">luis.ibanez@kitware.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">Hi Taru,<br><br>You may want to do the following:<br><br>
<ul>
<li>Use the itkConnectedComponentImageFilter <br>on the resulting segmentation</li>
<li>Then use the itkBinaryMask3DMeshSource<br>to extract an itkMesh for each one of the labels<br>in the connected components image</li>
<li>Finally use the itkVTKPolyDataWriter to write<br>the itkMeshes in to .vtk legacy files.</li></ul><br>Then to display the sufaces, yes, you need to create<br>a vtkActor for each one.<br><br>See for example:<br><br>InsightApplications/Auxiliary/vtk/<br>


    itkReadITKImage3DSegmentShowVTK.cxx<br>    itkReadITKImageSegmentShowVTK.cxx<br><br><br><br>Regards,<br><br><br>       Luis<br><br><br>-----------------------------<br>
<div class="gmail_quote">
<div>
<div></div>
<div>On Wed, Aug 5, 2009 at 10:00 AM, Taru S <span dir="ltr">&lt;<a href="mailto:swork24@gmail.com" target="_blank">swork24@gmail.com</a>&gt;</span> wrote:<br></div></div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div></div>
<div>Hello,<br> <br>I am new to VTK.  I have segmented a 3D MR volume using ITK-SNAP and now need to process each of these segmented structures using VTK.<br> <br>ITK-Snap allows me to save either the entire 3D segmentation or the individual mesh structures. <br>


 <br>Could you please guide me regarding the best way to extract the individual segmented structures from the full 3D segmented image (single image with all the segmented str not the individual meshes) so that I can process them individually(vtk filters - decimation etc) and create  polygonal mesh models for each and finally a 3D volumetric model using all these meshes. <br>


 <br> <br>Also, as per my understanding, I will need to create one vtkActor for each of the segmented structures. Please advise if this is the right way to do it ?<br> <br>I will really appreciate your help.<br clear="all">



<div></div><br>-- <br>Regards,<br><font color="#888888">Taru<br></font><br></div></div>_____________________________________<br>Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<br>


<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 ITK FAQ at: <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>


<br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br><br></blockquote></div><br></blockquote>


</div><br><br clear="all">
<div></div><br></div></div>-- <br>Regards,<br><font color="#888888">Taru<br>
</font></blockquote></div></div></div><br>
</div><br>