<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 6.00.2900.2769" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=529594720-10112005><FONT face=Arial color=#0000ff size=2>What 
you are suggesting should work. (minus the typo of median-&gt;Getoutut() which 
should be median-&gt;GetOutput() )</FONT></SPAN></DIV>
<DIV><SPAN class=529594720-10112005></SPAN>&nbsp;</DIV>
<DIV><SPAN class=529594720-10112005><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=529594720-10112005><FONT face=Arial color=#0000ff 
size=2>Jim</FONT></SPAN></DIV>
<BLOCKQUOTE>
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> 
  insight-users-bounces+millerjv=crd.ge.com@itk.org 
  [mailto:insight-users-bounces+millerjv=crd.ge.com@itk.org]<B>On Behalf Of 
  </B>Renaud Isabelle<BR><B>Sent:</B> Thursday, November 10, 2005 1:59 
  PM<BR><B>To:</B> insight-users@itk.org<BR><B>Subject:</B> [Insight-users] need 
  advice<BR><BR></FONT></DIV>
  <DIV>Hi,</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>I would like to apply a median filter on my input image but many times. 
  Here is what I did,&nbsp;but I am really not sure if this is correct and safe. 
  </DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;&nbsp; <STRONG><EM>typedef itk::MedianImageFilter&lt;ImageType, 
  ImageType&gt; MedianFilter;<BR>&nbsp;&nbsp;&nbsp; MedianFilter::Pointer 
  medianFilter = MeanFilter::New();&nbsp;</EM></STRONG></DIV>
  <DIV><STRONG><EM>&nbsp;&nbsp;&nbsp; ImageType::SizeType 
  radius;<BR>&nbsp;&nbsp;&nbsp; radius[0] = 1; // radius along 
  x<BR>&nbsp;&nbsp;&nbsp; radius[1] = 1; // radius along y<BR>&nbsp;&nbsp;&nbsp; 
  meanFilter-&gt;SetRadius( radius );&nbsp; <BR>&nbsp;</EM></STRONG></DIV>
  <DIV><STRONG><EM>&nbsp;&nbsp;&nbsp; ImageType::Pointer tmp;<BR>&nbsp;&nbsp; 
  &nbsp;tmp = input_image; // got from previous filters<BR>&nbsp;&nbsp;&nbsp; 
  tmp-&gt;DisconnectPipeline();</EM></STRONG></DIV>
  <DIV><STRONG><EM></EM></STRONG>&nbsp;</DIV>
  <DIV><STRONG><EM>&nbsp;for(int k=0;k&lt;5;k++)//5 fois de 
  suite<BR>&nbsp;{<BR>&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; medianFilter-&gt;SetInput( 
  tmp );<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  medianFilter-&gt;Update();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tmp = 
  medianFilter-&gt;Getoutput();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  tmp-&gt;DisconnectPipeline();<BR>&nbsp;}<BR></EM></STRONG>&nbsp;<BR>What do 
  you think? </DIV>
  <DIV>&nbsp;</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> </BLOCKQUOTE></BODY></HTML>