[vtkusers] Generate contours around the segmented regions

Xiaopeng Yang yxp233 at postech.ac.kr
Wed Feb 23 20:27:25 EST 2011


Hello VTK users,

 

After segmentation, I would like to generate contours around the segmented
regions. And then visualize the contours over the original images. However,
The generated "contours" look like 3D surface, not 2D contours (see the
following image). Do you guys know what's going on?

 

The code for generating contours:

 

vtkContourFilter * contour = vtkContourFilter::New();

contour->SetInput( vtkImporter2->GetOutput() );

contour->SetValue(0, 128); // edges of a binary image with values 0,255

 



 

Thanks a lot,

Yang

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110224/cb1e5db1/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/octet-stream
Size: 7825 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110224/cb1e5db1/attachment.obj>


More information about the vtkusers mailing list