<!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->Getoutut() which
should be median->GetOutput() )</FONT></SPAN></DIV>
<DIV><SPAN class=529594720-10112005></SPAN> </DIV>
<DIV><SPAN class=529594720-10112005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </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> </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> </BLOCKQUOTE></BODY></HTML>