<DIV>Hi,</DIV>
<DIV> </DIV>
<DIV>I would like to apply a median filter on my input image but many times. Here is what I did, but I am really not sure if this is correct and safe. </DIV>
<DIV> </DIV>
<DIV> <STRONG><EM>typedef itk::MedianImageFilter<ImageType, ImageType> MedianFilter;<BR> MedianFilter::Pointer medianFilter = MeanFilter::New(); </EM></STRONG></DIV>
<DIV><STRONG><EM> ImageType::SizeType radius;<BR> radius[0] = 1; // radius along x<BR> radius[1] = 1; // radius along y<BR> meanFilter->SetRadius( radius ); <BR> </EM></STRONG></DIV>
<DIV><STRONG><EM> ImageType::Pointer tmp;<BR> tmp = input_image; // got from previous filters<BR> tmp->DisconnectPipeline();</EM></STRONG></DIV>
<DIV><STRONG><EM></EM></STRONG> </DIV>
<DIV><STRONG><EM> for(int k=0;k<5;k++)//5 fois de suite<BR> {<BR> medianFilter->SetInput( tmp );<BR> medianFilter->Update();<BR> tmp = medianFilter->Getoutput();<BR> tmp->DisconnectPipeline();<BR> }<BR></EM></STRONG> <BR>What do you think? </DIV>
<DIV> </DIV>
<DIV>Isabelle</DIV><p>
                <hr size=1>
<b><font color=#FF0000>Appel audio GRATUIT</font> partout dans le monde</b> avec le nouveau Yahoo! Messenger<br>
<a href="http://us.rd.yahoo.com/messenger/mail_taglines/default/*http://fr.messenger.yahoo.com">Téléchargez le ici !</a>