<div>Dear Gaetan,</div>  <div>For erosion it takes around 93 second but for dilation it takes around <STRONG>45 minute</STRONG>.but&nbsp; I have two question here:the first is if the&nbsp;&nbsp;binaryopening by reconstruction filter do exactly the same as erosion follow by dilation?</div>  <div>The second question which is very important to me is why your Binary opening by reconstruction filter doesn't work well when I add subtract image filter to the end of algorithm to subtract the image before opening and the image after opening?(I mean I can build it successfully but when I try to implement it it do the opening but when it reach the subtract filter it stop.)my input image is 3D volum image</div>  <div>I add the following line to the end of binary opening by reconstruction image filater.</div>  <div><STRONG></STRONG>&nbsp;</div>  <div><STRONG>typedef itk::SubtractImageFilter&lt;
 <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IType, <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IType, <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IType &gt; DifferenceFilterType;<BR>&nbsp; DifferenceFilterType::Pointer difference = DifferenceFilterType::New();</STRONG></div>  <div><STRONG>&nbsp; difference-&gt;SetInput1( reader-&gt;GetOutput() );<BR>&nbsp; difference-&gt;SetInput2( reconstruction-&gt;GetOutput() );<BR>&nbsp; <BR>&nbsp; WriterType::Pointer writer2 = WriterType::New();<BR>&nbsp;
 writer2-&gt;SetInput( difference-&gt;GetOutput() ); <BR>&nbsp; writer2-&gt;SetFileName( argv[7] );<BR>&nbsp; writer2-&gt;Update();</STRONG></div>  <div>please let me know how can I solve this problem because it is very important for me.</div>  <div>thanks in advance</div>  <div><STRONG>&nbsp;Alireza<BR></STRONG><BR><B><I>Gaëtan Lehmann &lt;gaetan.lehmann@jouy.inra.fr&gt;</I></B> wrote:</div>  <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"><BR>Hi Alireza,<BR><BR>Because of the algorithm used in those filters, it is possible to <BR>have a different execution time. However, the difference are <BR>generally small.<BR>Can you give more detail about what you call "quick" and "very long <BR>time"?<BR><BR>Thanks,<BR><BR>Gaëtan<BR><BR><BR>Le 3 mai 07 à 16:03, Alireza Salamy a écrit :<BR><BR>&gt; Hi all users,<BR>&gt; I am trying to do dilatation by BinaryDilateImageFilterTest on the <BR>&gt; image which is the output of the
 BinaryErodeImageFilterTest.the <BR>&gt; first filter( BinaryErodeImageFilterTest) works very quick but when <BR>&gt; I try to implement the second filter(BinaryDilateImageFilterTest) <BR>&gt; it takes very long time.in both filter I chose the radius=5.can <BR>&gt; somebody let me know what is wrong with that?<BR>&gt;<BR>&gt; Ahhh...imagining that irresistible "new car" smell?<BR>&gt; Check out new cars at Yahoo! Autos.<BR>&gt; _______________________________________________<BR>&gt; Insight-users mailing list<BR>&gt; Insight-users@itk.org<BR>&gt; http://www.itk.org/mailman/listinfo/insight-users<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 fax: 01 34 65 29 09<BR>http://voxel.jouy.inra.fr<BR><BR><BR><BR></BLOCKQUOTE><BR><p>&#32;

      <hr size=1>Ahhh...imagining that irresistible "new car" smell?<br> Check out
<a href="http://us.rd.yahoo.com/evt=48245/*http://autos.yahoo.com/new_cars.html;_ylc=X3oDMTE1YW1jcXJ2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDbmV3LWNhcnM-">new cars at Yahoo! Autos.</a>