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 itk::BinaryContourImageFilter <ITKImgLabelType, ITKImgLabelType> Contourizer;</div><div>Contourizer::Pointer contour = Contourizer::New();</div><div>contour->SetInput(img);</div><div>
contour->SetFullyConnected(false); // true makes thicker contours</div><div>contour->SetBackgroundValue(0);</div><div>contour->SetForegroundValue(255); // the value of your binary mask</div><div>contour->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"><<a href="mailto:smrolfe@u.washington.edu">smrolfe@u.washington.edu</a>></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. I've done this successfully before using the <span style="font-family:Monaco;font-size:10px">SimpleContourExtractorImageFilter,</span> but in was in 2D. Is there a problem using this filter in 3D? Or parameters that need to be changed? 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> Alma IT Systems<br> C/ Vilana, 4B, 4º 1ª<br> 08022 Barcelona<br> T. (+34) 932 380 592<br> <a href="http://www.alma3d.com">www.alma3d.com</a><br>
</div>