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><br>Regards<br>Paulo<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:18, 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,<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; &nbsp;erode = itk.GrayscaleErodeImageFilter.IF3IF3SE3.New()<br>
 &nbsp; &nbsp; &nbsp; &nbsp;erode.SetInput(image.GetOutput())<br>
 &nbsp; &nbsp; &nbsp; &nbsp;erode.SetKernel( ?? )<br>
<br>
</blockquote>
<br></div>
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><font color="#888888">
<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>
</font></blockquote></div><br>