<br>Hi maillist_xx<br><br>It seems that you are forgetting to call<br><div><br> antialias->Update();
<div><br></div>
<br>before you call:<br><br> DistanceField_s = antialias->GetOutput();</div><div><br><br>The output of ITK filters is only valid<br>after you call Update() in the filter.<br></div><br><br> Regards,<br><br><br> Luis<br>
<br><br>--------------------------------<br><div class="gmail_quote">2010/9/26 <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;">
hi,all<div> I got a problem when I try to use itk::AntiAliasBinaryImageFilter to process the 3D image and VtkMarchingCubes to visualise it, but the output of filter is nothing.I have no idea why the size of output is 0,here is part of my code:</div>
<div><br></div><div><div> typedef float IoPixelType;</div><div> typedef itk::Image< IoPixelType, 3 > IoImageType_3D;</div><div> typedef itk::AntiAliasBinaryImageFilter<IoImageType_3D,IoImageType_3D> AntiAliasFilterType; </div>
<div> AntiAliasFilterType::Pointer antialias = AntiAliasFilterType::New();</div><div> antialias->SetInput(inputimage);</div><div> printf("Smoothing\n");</div><div> antialias->SetMaximumRMSError(0.01);</div>
<div> antialias->SetNumberOfIterations(50);</div><div> antialias->SetNumberOfLayers( 2 );</div><div> DistanceField_s = antialias->GetOutput();</div></div><div><br></div><div> any advice will be appreciated.</div>
<div><br></div><div>XuXing</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>