You need <br>antialias->Update();<br><br>before <br>DistanceField_s = antialias->GetOutput();<br><br><br><div class="gmail_quote">2010/9/27 <span dir="ltr"><<a href="mailto:maillist_xx@sina.com">maillist_xx@sina.com</a>></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;&nbsp;&nbsp;typedef itk::Image< IoPixelType, 3 > IoImageType_3D;</p>
<p>typedef itk::AntiAliasBinaryImageFilter<IoImageType_3D,IoImageType_3D> AntiAliasFilterType;</p>
<p>AntiAliasFilterType::Pointer antialias = AntiAliasFilterType::New();</p>
<p>antialias->SetInput(inputimage);</p>
<p>antialias->SetMaximumRMSError(0.01);</p>
<p>antialias->SetNumberOfIterations(50);</p>
<p>antialias->SetNumberOfLayers( 2 );</p>
<p>DistanceField_s = antialias->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>