[Insight-users] problem with AntiAliasBinaryImageFilter

Luis Ibanez luis.ibanez at kitware.com
Sun Oct 17 10:49:43 EDT 2010


Hi maillist_xx

It seems that you are forgetting to call

                  antialias->Update();


before you call:

   DistanceField_s =  antialias->GetOutput();


The output of ITK filters is only valid
after you call Update() in the filter.


    Regards,


         Luis


--------------------------------
2010/9/26 <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;
>   typedef itk::Image< IoPixelType, 3 > IoImageType_3D;
>   typedef itk::AntiAliasBinaryImageFilter<IoImageType_3D,IoImageType_3D>
> AntiAliasFilterType;
>   AntiAliasFilterType::Pointer antialias = AntiAliasFilterType::New();
>    antialias->SetInput(inputimage);
>     printf("Smoothing\n");
>     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/20101017/d7384cec/attachment.htm>


More information about the Insight-users mailing list