[Insight-users] [vtkusers] Reduce the number of control points in vtkContourWidget
Xiaopeng Yang
yxp233 at postech.ac.kr
Mon Mar 21 14:15:43 EDT 2011
Hello Karthik,
Since I did not get your reply, I send this mail again. Sorry to bother you again. As I mentioned, after applying vtkDecimatePolylineFilter, the points on the contour are not evenly distributed, which causes shape change of the original contour. Do you have any idea to solve this problem?
Thanks,
Yang
发件人: Xiaopeng Yang [mailto:yxp233 at postech.ac.kr]
发送时间: 2011년 3월 16일 수요일 오후 3:23
收件人: 'Karthik Krishnan'
抄送: 'vtk'; 'insight-users at itk.org'
主题: RE: [vtkusers] Reduce the number of control points in vtkContourWidget
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/20110322/af1696be/attachment.htm>
More information about the Insight-users
mailing list