[prev in list] [next in list] [prev in thread] [next in thread] 

List:       insight-users
Subject:    Re: [Insight-users] GrayscaleErodeImageFilter - SetKernel
From:       "Paulo Henrique Junqueira Amorim" <paulojamorim () gmail ! com>
Date:       2008-12-29 1:26:06
Message-ID: 98e18c70812281726o3105791focbcaa31d3025b45e () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Gaëtan,

Worked!

Thank you very much.


Regards and Happy New Year
Paulo Amorim




2008/12/28 Gaëtan Lehmann <gaetan.lehmann@jouy.inra.fr>

>
> Le 28 déc. 08 à 22:55, Paulo Henrique Junqueira Amorim a écrit :
>
>  Hi Gaetan,
>>
>> Thank's
>>
>> The  "dim" is diameter in number integer ? and the size is size of image
>> (100,100) image 100x100
>>
>
> dim is the dimension of the image - in your case, it's 3.
> size is the size of the structuring element. It can be an integer or an
> itk.Size[dim] or a python sequence of length dim. If it's an integer, the
> size will be the same on the 3 dimensions. With the itk.Size or with the
> python sequences, the size can be different on the dimensions.
>
> Ex:
>
> k1 = itk.FlatStructuringElement[3].Ball(5)
> k2 = itk.FlatStructuringElement[3].Ball([5, 5, 5])
> size = itk.Size[3]()
> size[0] = size[1] = size[2] = 5
> k3 = itk.FlatStructuringElement[3].Ball(size)
>
> k1, k2 and k3 are the same in that example.
>
> Gaëtan
>
>
>
>>
>> Regards
>> Paulo
>>
>>
>>
>> 2008/12/28 Gaëtan Lehmann <gaetan.lehmann@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
>>
>>
>>
> --
> 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
>
>

[Attachment #5 (text/html)]

Hi Gaëtan,<br><br>Worked! 
<br>
<br> Thank you very much.<br><br><br>Regards and Happy New Year<br>Paulo \
Amorim<br><br><br><br><br><div class="gmail_quote">2008/12/28 Gaëtan Lehmann <span \
dir="ltr">&lt;<a href="mailto:gaetan.lehmann@jouy.inra.fr">gaetan.lehmann@jouy.inra.fr</a>&gt;</span><br>
 <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); \
margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br> Le 28 déc. 08 à 22:55, Paulo \
Henrique Junqueira Amorim a écrit :<div class="Ih2E3d"><br> <br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); \
margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Hi Gaetan,<br>
<br>
Thank&#39;s<br>
<br>
The &nbsp;&quot;dim&quot; is diameter in number integer ? and the size is size of \
image (100,100) image 100x100<br> </blockquote>
<br></div>
dim is the dimension of the image - in your case, it&#39;s 3.<br>
size is the size of the structuring element. It can be an integer or an itk.Size[dim] \
or a python sequence of length dim. If it&#39;s an integer, the size will be the same \
on the 3 dimensions. With the itk.Size or with the python sequences, the size can be \
different on the dimensions.<br>

<br>
Ex:<br>
<br>
k1 = itk.FlatStructuringElement[3].Ball(5)<br>
k2 = itk.FlatStructuringElement[3].Ball([5, 5, 5])<br>
size = itk.Size[3]()<br>
size[0] = size[1] = size[2] = 5<br>
k3 = itk.FlatStructuringElement[3].Ball(size)<br>
<br>
k1, k2 and k3 are the same in that example.<br><font color="#888888">
<br>
Gaëtan</font><div><div></div><div class="Wj3C7c"><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); \
margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <br>
<br>
Regards<br>
Paulo<br>
<br>
<br>
<br>
2008/12/28 Gaëtan Lehmann &lt;<a href="mailto:gaetan.lehmann@jouy.inra.fr" \
target="_blank">gaetan.lehmann@jouy.inra.fr</a>&gt;<br> <br>
Le 28 déc. 08 à 22:18, Paulo Henrique Junqueira Amorim a écrit :<br>
<br>
<br>
Hi,<br>
<br>
I am using the GrayscaleErodeImageFilter, but my ITK not have \
BinaryBallStructuringElement to use SetKernel().<br> <br>
how can I use SetKernel () ?<br>
<br>
code:<br>
 &nbsp; &nbsp; &nbsp; erode = itk.GrayscaleErodeImageFilter.IF3IF3SE3.New()<br>
 &nbsp; &nbsp; &nbsp; erode.SetInput(image.GetOutput())<br>
 &nbsp; &nbsp; &nbsp; erode.SetKernel( ?? )<br>
<br>
<br>
Hi,<br>
<br>
BinaryBallStructuringElement is not used any more in wrappers.<br>
You can produce a structuring element with:<br>
i. itk.strel(dim, size) - it&#39;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;<br> ii. itk.FlatStructuringElement[dim].Ball(size). A few more methods \
are available in that class to produce box, annulus, ... structuring elements.<br> \
<br> Regards,<br>
<br>
Gaëtan<br>
<br>
<br>
-- <br>
Gaëtan Lehmann<br>
Biologie du Développement et de la Reproduction<br>
INRA de Jouy-en-Josas (France)<br>
tel: +33 1 34 65 29 66 &nbsp; &nbsp;fax: 01 34 65 29 09<br>
<a href="http://voxel.jouy.inra.fr" target="_blank">http://voxel.jouy.inra.fr</a> \
&nbsp;<a href="http://www.mandriva.org" \
target="_blank">http://www.mandriva.org</a><br> <a href="http://www.itk.org" \
target="_blank">http://www.itk.org</a> &nbsp;<a href="http://www.clavier-dvorak.org" \
target="_blank">http://www.clavier-dvorak.org</a><br> <br>
<br>
</blockquote>
<br>
-- <br>
Gaëtan Lehmann<br>
Biologie du Développement et de la Reproduction<br>
INRA de Jouy-en-Josas (France)<br>
tel: +33 1 34 65 29 66 &nbsp; &nbsp;fax: 01 34 65 29 09<br>
<a href="http://voxel.jouy.inra.fr" target="_blank">http://voxel.jouy.inra.fr</a> \
&nbsp;<a href="http://www.mandriva.org" \
target="_blank">http://www.mandriva.org</a><br> <a href="http://www.itk.org" \
target="_blank">http://www.itk.org</a> &nbsp;<a href="http://www.clavier-dvorak.org" \
target="_blank">http://www.clavier-dvorak.org</a><br> <br>
</div></div></blockquote></div><br>



_______________________________________________
Insight-users mailing list
Insight-users@itk.org
http://www.itk.org/mailman/listinfo/insight-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic