[Insight-users] problem with AntiAliasBinaryImageFilter

maillist_xx at sina.com maillist_xx at sina.com
Sun Sep 26 09:41:22 EDT 2010


 hi,all    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:
&nbsp;&nbsp;typedef float IoPixelType;&nbsp;&nbsp;typedef itk::Image< IoPixelType, 3 > IoImageType_3D;&nbsp;&nbsp;typedef itk::AntiAliasBinaryImageFilter<IoImageType_3D,IoImageType_3D> AntiAliasFilterType;&nbsp;&nbsp;&nbsp;AntiAliasFilterType::Pointer antialias = AntiAliasFilterType::New();&nbsp;&nbsp; antialias->SetInput(inputimage);&nbsp;&nbsp; &nbsp;printf("Smoothing\n");&nbsp;&nbsp; &nbsp;antialias->SetMaximumRMSError(0.01);&nbsp;&nbsp; &nbsp;antialias->SetNumberOfIterations(50);&nbsp;&nbsp; &nbsp;antialias->SetNumberOfLayers( 2 );&nbsp;&nbsp; DistanceField_s = &nbsp;antialias->GetOutput();
&nbsp;any advice will be appreciated.
XuXing
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100926/3fd22010/attachment.htm>


More information about the Insight-users mailing list