<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Batang;
        panose-1:2 3 6 0 0 1 1 1 1 1;}
@font-face
        {font-family:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Malgun Gothic";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"\@Batang";
        panose-1:2 3 6 0 0 1 1 1 1 1;}
@font-face
        {font-family:"\@宋体";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"\@Malgun Gothic";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hello Karthik,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>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?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thanks,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Yang<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span lang=ZH-CN style='font-size:10.0pt;font-family:宋体'>发件人</span></b><b><span style='font-size:10.0pt;font-family:宋体'>:</span></b><span style='font-size:10.0pt;font-family:宋体'> Xiaopeng Yang [mailto:yxp233@postech.ac.kr] <br><b><span lang=ZH-CN>发送时间</span>:</b> 2011</span><span lang=ZH-CN style='font-size:10.0pt;font-family:"Batang","serif"'>년</span><span style='font-size:10.0pt;font-family:宋体'> 3</span><span lang=ZH-CN style='font-size:10.0pt;font-family:"Batang","serif"'>월</span><span style='font-size:10.0pt;font-family:宋体'> 16</span><span lang=ZH-CN style='font-size:10.0pt;font-family:"Batang","serif"'>일</span><span lang=ZH-CN style='font-size:10.0pt;font-family:宋体'> </span><span lang=ZH-CN style='font-size:10.0pt;font-family:"Batang","serif"'>수요일</span><span lang=ZH-CN style='font-size:10.0pt;font-family:宋体'> </span><span lang=ZH-CN style='font-size:10.0pt;font-family:"Batang","serif"'>오후</span><span style='font-size:10.0pt;font-family:宋体'> 3:23<br><b><span lang=ZH-CN>收件人</span>:</b> 'Karthik Krishnan'<br><b><span lang=ZH-CN>抄送</span>:</b> 'vtk'; 'insight-users@itk.org'<br><b><span lang=ZH-CN>主题</span>:</b> RE: [vtkusers] Reduce the number of control points in vtkContourWidget<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi Karthik,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>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?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thanks,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Yang<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span lang=ZH-CN style='font-size:10.0pt;font-family:宋体'>发件人</span></b><b><span style='font-size:10.0pt;font-family:宋体'>:</span></b><span style='font-size:10.0pt;font-family:宋体'> Karthik Krishnan [mailto:karthik.krishnan@kitware.com] <br><b><span lang=ZH-CN>发送时间</span>:</b> 2011</span><span lang=ZH-CN style='font-size:10.0pt;font-family:"Batang","serif"'>년</span><span style='font-size:10.0pt;font-family:宋体'> 3</span><span lang=ZH-CN style='font-size:10.0pt;font-family:"Batang","serif"'>월</span><span style='font-size:10.0pt;font-family:宋体'> 15</span><span lang=ZH-CN style='font-size:10.0pt;font-family:"Batang","serif"'>일</span><span lang=ZH-CN style='font-size:10.0pt;font-family:宋体'> </span><span lang=ZH-CN style='font-size:10.0pt;font-family:"Batang","serif"'>화요일</span><span lang=ZH-CN style='font-size:10.0pt;font-family:宋体'> </span><span lang=ZH-CN style='font-size:10.0pt;font-family:"Batang","serif"'>오후</span><span style='font-size:10.0pt;font-family:宋体'> 7:38<br><b><span lang=ZH-CN>收件人</span>:</b> Xiaopeng Yang<br><b><span lang=ZH-CN>抄送</span>:</b> vtk; insight-users@itk.org<br><b><span lang=ZH-CN>主题</span>:</b> Re: [vtkusers] Reduce the number of control points in vtkContourWidget<o:p></o:p></span></p></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>Pass it through a vtkDecimatePolylineFilter. It should reduce the number of points. You can initialize the contour with those control points then.&nbsp;<o:p></o:p></p><div><p class=MsoNormal>On Tue, Mar 15, 2011 at 8:09 AM, Xiaopeng Yang &lt;<a href="mailto:yxp233@postech.ac.kr">yxp233@postech.ac.kr</a>&gt; wrote:<o:p></o:p></p><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Dear Users,<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>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?<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Thanks,<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Yang<o:p></o:p></p></div></div><p class=MsoNormal style='margin-bottom:12.0pt'><br>_______________________________________________<br>Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br><br>Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><o:p></o:p></p></div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>