[Insight-users] Problem with AntiAliasBInaryImageFilter

nadan zhu nadan.zhu at gmail.com
Sun Sep 26 20:03:06 EDT 2010


You need
antialias->Update();

before
DistanceField_s = antialias->GetOutput();


2010/9/27 <maillist_xx at sina.com>

> 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 float IoPixelType;&nbsp;&nbsp;typedef itk::Image< IoPixelType, 3 > IoImageType_3D;
>
>
> typedef itk::AntiAliasBinaryImageFilter<IoImageType_3D,IoImageType_3D> AntiAliasFilterType;
>
> AntiAliasFilterType::Pointer antialias = AntiAliasFilterType::New();
>
> antialias->SetInput(inputimage);
>
> antialias->SetMaximumRMSError(0.01);
>
> antialias->SetNumberOfIterations(50);
>
> antialias->SetNumberOfLayers( 2 );
>
> DistanceField_s = antialias->GetOutput();
>
> any advice will be appreciated.
>
>
> XuXing
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100927/aaad77f4/attachment.htm>


More information about the Insight-users mailing list