You might also consider taking the mesh to VTK land <br>with itk::MeshToVTKPolyData, and then decimating it <br>with one of the many topology preserving decimation <br>filters in VTK that work on triangle meshes.<br><br>There's<br>
vtkDecimate<br> vtkDecimatePro<br> vtkQuadricClustering<br> vtkQuadricDecimation<br><br>Each have their own definition of the error metric, which<br>they try to minimize. None of those is based on a distance <br>between vertices though.<br>
<br>You can then bring the resulting mesh back from VTK to <br>ITK. However, at this point, your mesh is no longer <br>guaranteed to be a simplex mesh. So as a final step, you <br>can apply the TriangleMeshToSimplexMeshFilter.<br>
<br>HTH<br>-- <br>Karthik Krishnan<br>R&D Engineer,<br>Kitware Inc.<br>Ph: 518 371 3971 x119<br>Fax: 518 371 3971<br><br><div class="gmail_quote">On Mon, Jan 19, 2009 at 4:40 PM, Ori Hay <span dir="ltr"><<a href="mailto:magicdelphis@gmail.com">magicdelphis@gmail.com</a>></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 link="blue" vlink="purple" lang="EN-US">
<div>
<p>Hi</p>
<p> </p>
<p>I want to create a simplex mesh from binary image (segmented
volume) , with predefined resolution (e.g. if a voxel is 1x1x1 mm create a mesh
with 5mm spacing between vertices)</p>
<p> </p>
<p>Is there a simple method for doing this ?</p>
<p>I thought of using </p>
<p><span style="font-size: 10pt; font-family: "Courier New";">itk::BinaryMask3DMeshSource<
BinaryImageType, TriangleMeshType ></span> </p>
<p>followed by:</p>
<p><span style="font-size: 10pt; font-family: "Courier New";">itk::TriangleMeshToSimplexMeshFilter<
TriangleMeshType, SimplexMeshType ></span></p>
<p>Is there a way to define the output resolution when using <span style="font-size: 10pt; font-family: "Courier New";">BinaryMask3DMeshSource or TriangleMeshToSimplexMeshFilter?</span></p>
<p> </p>
<p>One workaround I was thinking of is to resample the binary
volume to 5x5x5 mm voxels and create a mesh from the resample data,</p>
<p>Does it sound wise ? </p>
<p> </p>
<p>Regards</p>
<p> </p>
<p>Ori Hay</p>
<p>PhD. Student </p>
<p>Tel Aviv University</p>
<p> </p>
<p> </p>
<p> </p>
</div>
</div>
<br>_______________________________________________<br>
Insight-users mailing list<br>
<a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><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><br clear="all"><br>