[vtkusers] vtkContourFilter behaviour question...

Dominique Töpfer dominique at toepfer-web.de
Wed Sep 28 13:27:44 EDT 2011


Hi Mathieu,

you could try padding your image before applying the filter.

HTH
Dominique

On 28.09.2011 19:21, Mathieu Coursolle wrote:
> Hi VTK users,
>
> I am currently using vtkContourFilter to create a polydata from a binary 3D image.
>
> I works fine for most of my datasets, except that I recently got datasets where there is binary data up to the edge of the dataset.
> The worst case is a 3D dataset for which all voxels have the same non-zero value (e.g. 1).
>
> I am looking for a behaviour where running the contour algorithm on such a dataset would result in a cubic polydata. I instead get an empty polydata.
>
> Is there a way to get the expected behaviour with vtkContourFilter? Or another algorithm?
>
> Thank you,
>
> Mathieu
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers


-- 
Thus spake the master programmer:
     "After three days without programming, life becomes meaningless."

-- The Tao of Programming by Geoffry James

Dominique Töpfer, Dipl.-Inform.
Institute of Medical Physics
University of Erlangen




More information about the vtkusers mailing list