Hello Ella,<div> The fast marching filter receives as input a list of points or seeds. It computes the distance map to those seed points. If you compute the initial level set outside your program you need to do the following. I'm assuming you have the initial level set in a ini.mha file. Just read this image and use it as input of the GAC filter.</div>
<div><br></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="font-size: medium; "><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">
<br class="Apple-interchange-newline"> smoothing-><span style="color: rgb(61, 35, 128); ">SetInput</span>([<span style="color: rgb(81, 129, 135); ">itkImage</span> <span style="color: rgb(51, 89, 93); ">itkImporter</span>]->GetOutput() );</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "><span style="white-space: pre-wrap; ">        </span>gradientMagnitude-><span style="color: rgb(61, 35, 128); ">SetInput</span>( smoothing->GetOutput() );</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "><span style="white-space: pre-wrap; ">        </span>sigmoid-><span style="color: rgb(61, 35, 128); ">SetInput</span>( gradientMagnitude->GetOutput() );</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; "><span style="white-space: pre-wrap; ">        </span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; ">
<span style="white-space: pre-wrap; ">reader->SetFilenName("ini.mha");</span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; ">
<span style="white-space: pre-wrap; "><br></span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; "><span style="white-space: pre-wrap; "><br>
</span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "><span style="white-space: pre-wrap; ">        </span>geodesicActiveContour-><span style="color: rgb(61, 35, 128); ">SetInput</span>( reader->GetOutput() );</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "><span style="white-space: pre-wrap; ">        </span>geodesicActiveContour->SetFeatureImage( sigmoid->GetOutput() );</p>
<div><br></div><div><br></div></span><br><div class="gmail_quote">On Mon, Feb 14, 2011 at 11:33 AM, Ella Maria Kadas <span dir="ltr"><<a href="mailto:ella_kadas@yahoo.com">ella_kadas@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit">I still don't really understand what does FastMarchingFilter get as input. I tried the FastMarchingFilter example from ITK/Segmentation and i don't see how providing only the output of the Sigmoid Filter and seed points i only get a black image.<div>
I tried to use the SignedDanielssonDistanceFilter and the Image that i get from it looks pretty good. so i used</div><div><p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo"><br></p><p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo">
<br></p><p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo"> smoothing-><span style="color:#3d2380">SetInput</span>([<span style="color:#518187">itkImage</span> <span style="color:#33595d">itkImporter</span>]->GetOutput() );</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo"><span style="white-space:pre-wrap">        </span>gradientMagnitude-><span style="color:#3d2380">SetInput</span>( smoothing->GetOutput() );</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo"><span style="white-space:pre-wrap">        </span>sigmoid-><span style="color:#3d2380">SetInput</span>( gradientMagnitude->GetOutput() );</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;min-height:13.0px"><span style="white-space:pre-wrap">        </span></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo"><span style="white-space:pre-wrap">        </span>geodesicActiveContour-><span style="color:#3d2380">SetInput</span>( distanceMap->GetOutput() );</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo"><span style="white-space:pre-wrap">        </span>geodesicActiveContour->SetFeatureImage( sigmoid->GetOutput() );</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;min-height:13.0px"><span style="white-space:pre-wrap">        </span></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo"><span style="white-space:pre-wrap">        </span>thresholder-><span style="color:#3d2380">SetInput</span>( geodesicActiveContour->GetOutput() );</p><p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo">
and update the threshold.</p><p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo">But the result is still a black image. Any ideea what am i still doing so wrong.</p><p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo">
Thanks in advance,</p><p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo"> Ella</p><div><br></div><div><br></div></div></td></tr></tbody></table><br><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></div>