[Insight-users] GrayscaleErodeImageFilter - SetKernel

Paulo Henrique Junqueira Amorim paulojamorim at gmail.com
Sun Dec 28 17:05:33 EST 2008


Gaetan,

Sorry I had understood wrong. worked well,

      erode.SetKernel(itk.FlatStructuringElement._3.Ball(2))

Thank you.

Regards and Happy New Year,
Paulo Amorim



2008/12/28 Paulo Henrique Junqueira Amorim <paulojamorim at gmail.com>

> Hi Gaetan,
>
> Thank's
>
> The  "dim" is diameter in number integer ? and the size is size of image
> (100,100) image 100x100
>
> Regards
> Paulo
>
>
>
> 2008/12/28 Gaëtan Lehmann <gaetan.lehmann at jouy.inra.fr>
>
>
>> 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
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20081228/18044d01/attachment-0002.htm>


More information about the Insight-users mailing list