You need <br>antialias-&gt;Update();<br><br>before <br>DistanceField_s = antialias-&gt;GetOutput();<br><br><br><div class="gmail_quote">2010/9/27  <span dir="ltr">&lt;<a href="mailto:maillist_xx@sina.com">maillist_xx@sina.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><p>hi,all</p>
<p>I got a problem when I try to use itk::AntiAliasBinaryImageFilter to process the 3D image and VtkMarchingCubes to visualise it, </p>
<p>but the output of filter is nothing.I have no idea why the size of output is 0,here is part of my code:<br></p>
<p>typedef float IoPixelType;&amp;nbsp;&amp;nbsp;typedef itk::Image&lt; IoPixelType, 3 &gt; IoImageType_3D;</p>
<p>typedef itk::AntiAliasBinaryImageFilter&lt;IoImageType_3D,IoImageType_3D&gt; AntiAliasFilterType;</p>
<p>AntiAliasFilterType::Pointer antialias = AntiAliasFilterType::New();</p>
<p>antialias-&gt;SetInput(inputimage);</p>
<p>antialias-&gt;SetMaximumRMSError(0.01);</p>
<p>antialias-&gt;SetNumberOfIterations(50);</p>
<p>antialias-&gt;SetNumberOfLayers( 2 );</p>
<p>DistanceField_s = antialias-&gt;GetOutput();<br></p>
<p>any advice will be appreciated.</p>
<p><br>XuXing</p><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>