Hi,<div>depending on the 3-D shape the contour will be thick, sometimes several voxels wide. Some shapes generate such thick contours, this is related to the 3d-neiggborhood of a given voxel. I guess you are evaluating the contour with a 2-D view? Keep in mind that the following and previous slices will affect the contour detected at a specific slice... at least that happened to me. When a shape is smooth and homogeneous, the contour is thin, but when it has cavities or bumps, the contour grows.</div>
<div><br></div><div>HTH</div><div><br></div><br><div class="gmail_quote">On Fri, Oct 8, 2010 at 11:41 PM, 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">Thanks Sergio, I have the BinaryContourImageFilter working. I also got the SimpleContourExtractorImageFilter to work by increasing the radius. I have one more related question. I used:<div class="im">
<div><br></div><blockquote type="cite"><div><div>contour->SetFullyConnected(false); // true makes thicker contours</div></div></blockquote><div><br></div></div><div>to get a thinner contour, but it still appears very thick. 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><font color="#888888"><div>Sara </div></font><div><div></div><div class="h5"><div><br></div><div><br><div><div><div>On Oct 8, 2010, at 12:19 AM, Sergio Vera wrote:</div><br>
<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 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" target="_blank">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" target="_blank">www.alma3d.com</a><br>
</div></blockquote></div><br></div></div></div></div></div></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>