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>