[Insight-users] [vtkusers] Reduce the number of control points in vtkContourWidget

Xiaopeng Yang yxp233 at postech.ac.kr
Tue Mar 15 20:26:09 EDT 2011


Then after decimation, how to convert it to vtkPolyData to be used for initializing vtkContourWidget?

 

Thanks,

Yang

 

发件人: Karthik Krishnan [mailto:karthik.krishnan at kitware.com] 
发送时间: 2011년 3월 15일 화요일 오후 7:38
收件人: Xiaopeng Yang
抄送: vtk; insight-users at itk.org
主题: Re: [vtkusers] Reduce the number of control points in vtkContourWidget

 

Pass it through a vtkDecimatePolylineFilter. It should reduce the number of points. You can initialize the contour with those control points then. 

On Tue, Mar 15, 2011 at 8:09 AM, Xiaopeng Yang <yxp233 at postech.ac.kr> wrote:

Dear Users,

 

I applied vtkContourFilter to generate 2D contour lines over a series of mask images. Then I used vtkContourWidget to initialize the contour lines so that I can edit these contour lines by dragging control points located in these lines. However, the initialized contour lines include so many points that it is very hard to edit the contours. My question is how to reduce the number of contour points dramatically?

 

Thanks,

Yang


_______________________________________________
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

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110316/5e99c096/attachment.htm>


More information about the Insight-users mailing list