[Insight-users] Problem with AntiAliasBInaryImageFilter

maillist_xx at sina.com maillist_xx at sina.com
Sun Sep 26 10:12:52 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:

typedef&nbsp;float&nbsp;IoPixelType;&nbsp;&nbsp;typedef&nbsp;itk::Image<&nbsp;IoPixelType,&nbsp;3&nbsp;>&nbsp;IoImageType_3D;
typedef&nbsp;itk::AntiAliasBinaryImageFilter<IoImageType_3D,IoImageType_3D>&nbsp;AntiAliasFilterType;
AntiAliasFilterType::Pointer&nbsp;antialias&nbsp;=&nbsp;AntiAliasFilterType::New();
antialias->SetInput(inputimage);
antialias->SetMaximumRMSError(0.01);
antialias->SetNumberOfIterations(50);
antialias->SetNumberOfLayers(&nbsp;2&nbsp;);
DistanceField_s&nbsp;=&nbsp;antialias->GetOutput();

any&nbsp;advice&nbsp;will&nbsp;be&nbsp;appreciated.

XuXing
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100926/27dba855/attachment.htm>


More information about the Insight-users mailing list