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

Xiaopeng Yang yxp233 at postech.ac.kr
Wed Mar 16 02:23:15 EDT 2011


Hi Karthik,

 

It works, but after decimation, the control points are not evenly distributed, which causes the change of the contour shape due to no control points at that part. So my question is how to make the points to be distributed evenly after decimation?

 

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/802e0ff5/attachment.htm>


More information about the Insight-users mailing list