<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thanks Sergio, I have the BinaryContourImageFilter working. &nbsp;I also got the SimpleContourExtractorImageFilter to work by increasing the radius. I have one more related question. &nbsp;I used:<div><br></div><blockquote type="cite"><div><div>contour-&gt;SetFullyConnected(false); // true makes thicker contours</div></div></blockquote><div><br></div><div>to get a thinner contour, but it still appears very thick. &nbsp;Is there any way to get closer to a 1-pixel wide contour from a 3D binary image?</div><div><br></div><div>Thanks,</div><div><br></div><div>Sara&nbsp;</div><div><br></div><div><br><div><div><div>On Oct 8, 2010, at 12:19 AM, Sergio Vera wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi Sara<div><br></div><div>As far as I know, SimpleContourExtractorImageFilter works OK in 3d images. We have performed some simple test in the past days and it worked. However, we finally use BinaryContourImageFilter as it seems to be faster:</div> <div><br></div><div><div>typedef&nbsp;itk::BinaryContourImageFilter &lt;ITKImgLabelType, ITKImgLabelType&gt;&nbsp;Contourizer;</div><div>Contourizer::Pointer contour = Contourizer::New();</div><div>contour-&gt;SetInput(img);</div><div> contour-&gt;SetFullyConnected(false); // true makes thicker contours</div><div>contour-&gt;SetBackgroundValue(0);</div><div>contour-&gt;SetForegroundValue(255); // the value of your binary mask</div><div>contour-&gt;Update()</div> <div><br></div><div>Regards</div><br><div class="gmail_quote">On Fri, Oct 8, 2010 at 2:30 AM, Sara Rolfe <span dir="ltr">&lt;<a href="mailto:smrolfe@u.washington.edu">smrolfe@u.washington.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"> <div style="word-wrap:break-word">Hello,<div><br></div><div>I'm attempting to extract the 3d contour from a binary mask image. &nbsp;I've done this successfully before using the&nbsp;<span style="font-family:Monaco;font-size:10px">SimpleContourExtractorImageFilter,</span>&nbsp;but in was in 2D. &nbsp;Is there a problem using this filter in 3D? &nbsp;Or parameters that need to be changed? &nbsp;Also, if there are any examples that might help please point me to them.</div> <div><br></div><div>Thanks,</div><div>Sara</div></div><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<br> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br> <br> Kitware offers ITK Training Courses, for more information visit:<br> <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br> <br> Please keep messages on-topic and check the ITK FAQ at:<br> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br> <br> Follow this link to subscribe/unsubscribe:<br> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br> <br></blockquote></div><br><br clear="all"><br>-- <br>Sergio Vera<br><br>&nbsp;Alma IT Systems<br>&nbsp;C/ Vilana, 4B, 4º 1ª<br>&nbsp;08022 Barcelona<br>&nbsp;T. (+34) 932 380 592<br>&nbsp;<a href="http://www.alma3d.com">www.alma3d.com</a><br> </div></blockquote></div><br></div></div></body></html>