[vtkusers] Smoothing a contour obtained with vtkMarchingSquares

Federico Milano fmilano at gmail.com
Thu Jun 13 10:29:26 EDT 2013


Hi. I'm slicing a binary image and obtaining a contour of it with
vtkMarchingSquares.

This is the result I'm getting right now:
http://tinypic.com/view.php?pic=nx3mf5&s=5
I would like to smooth the "sawtooth" like sides.

I've tried with vtkSmoothPolyDataFilter and I've got no difference in the
output. I've also tried with vtkWindowedSincPolyDataFilter and the result
was a deformed triangle.

This is the smoothing code I've been experimenting with:
http://pastie.org/8039293

I would really appreciate any hint.

Thanks in advance,

Federico
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130613/7b34430f/attachment.htm>


More information about the vtkusers mailing list