[Insight-users] GrayscaleErodeImageFilter - SetKernel

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Sun Dec 28 16:36:32 EST 2008


Le 28 déc. 08 à 22:18, Paulo Henrique Junqueira Amorim a écrit :

> Hi,
>
> I am using the GrayscaleErodeImageFilter, but my ITK not have  
> BinaryBallStructuringElement to use SetKernel().
>
> how can I use SetKernel () ?
>
> code:
>         erode = itk.GrayscaleErodeImageFilter.IF3IF3SE3.New()
>         erode.SetInput(image.GetOutput())
>         erode.SetKernel( ?? )
>

Hi,

BinaryBallStructuringElement is not used any more in wrappers.
You can produce a structuring element with:
i. itk.strel(dim, size) - it's a shortcut to produce a ball  
structuring element inherited of the time when creating a ball  
structuring element was requiring several lines of code;
ii. itk.FlatStructuringElement[dim].Ball(size). A few more methods are  
available in that class to produce box, annulus, ... structuring  
elements.

Regards,

Gaëtan


-- 
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66    fax: 01 34 65 29 09
http://voxel.jouy.inra.fr  http://www.mandriva.org
http://www.itk.org  http://www.clavier-dvorak.org



More information about the Insight-users mailing list