Is there any implementation of such algorithm somewhere? (even outside VTK)<br><br>Best.<br><br><div class="gmail_quote">2011/12/7 Julien Lamy <span dir="ltr"><<a href="mailto:lamy@unistra.fr">lamy@unistra.fr</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Arthur,<br>
<br>
Le 07/12/2011 17:12, Arthur Porat a écrit :<br>
<div><div></div><div class="h5">> Hi vtk users,<br>
><br>
> I would like to apply morphological operations such as<br>
> open/erode/dilate/... on a VTK 3D mesh (ie a vtkPolyData).<br>
><br>
> Is there any filter/api for this kind of processing? I failed to find<br>
> classes working with vtkPolyData.<br>
> I heard about vtkImageDilateErode3D but it is designed to work with 3D<br>
> volumes and not meshes.<br>
<br>
</div></div>As far as I know, there are no such operations in VTK. They are however<br>
quite easy to implement : you just have to define a ring neighborhood of<br>
desired radius (the equivalent of a structuring element on images) on<br>
each point of your vtkPolyData (based on the topology of the cells), and<br>
then simply compute the minimum (for erosion) or maximum (for dilation)<br>
of the points values on this neighborhood and assign it to the "center"<br>
point.<br>
<br>
HTH,<br>
<font color="#888888">--<br>
Julien<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>
</font></blockquote></div><br>