[ITK-users] BinaryDilateImageFilter has an issue?

Girish Mallya Udupi indianzeppelin at gmail.com
Fri Oct 31 06:44:32 EDT 2014


Hi Hui,

Could you describe what exactly the problem is? Also, couId you also paste
the earlier part of your code (where Image3DIntType and readerint are
defined)?


On Fri, Oct 31, 2014 at 8:53 AM, Hui Tang <tanghui.seu at gmail.com> wrote:

> Dear all,
>
> I can not get dilation or erosion from BinaryDilateImageFilter  or
> BinaryErodeImageFilter
>
> I mostly copied from the example and thought it should work without any
> problems.
>
> Here is my code.
> Anyone knows what is wrong here? Thanks a lot in advance !
>
>
> unsigned int radius = 7;
>
> typedef itk::BinaryBallStructuringElement<int, 3> StructuringElementType;
>
> StructuringElementType structuringElement;
>
> structuringElement.SetRadius(radius);
>
> structuringElement.CreateStructuringElement();
>
>
>
> typedef itk::BinaryDilateImageFilter <Image3DIntType, Image3DIntType,
> StructuringElementType> BinaryDilateImageFilterType;
>
> BinaryDilateImageFilterType::Pointer dilateFilter =
> BinaryDilateImageFilterType::New();
>
> dilateFilter->SetInput(readerint->GetOutput());
>
> dilateFilter->SetKernel(structuringElement);
>
> dilateFilter->Update();
>
>
>
> Best,
>
>
>
> Hui
>
> _____________________________________
> 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.php
>
> 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://public.kitware.com/mailman/listinfo/insight-users
>
>


-- 
Regards,
Girish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20141031/837ddd8e/attachment.html>


More information about the Insight-users mailing list