[Insight-users] need advice

Miller, James V (Research) millerjv at crd.ge.com
Thu Nov 10 15:49:53 EST 2005


What you are suggesting should work. (minus the typo of median->Getoutut() which should be median->GetOutput() )
 
 
Jim

-----Original Message-----
From: insight-users-bounces+millerjv=crd.ge.com at itk.org [mailto:insight-users-bounces+millerjv=crd.ge.com at itk.org]On Behalf Of Renaud Isabelle
Sent: Thursday, November 10, 2005 1:59 PM
To: insight-users at itk.org
Subject: [Insight-users] need advice


Hi,
 
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. 
 
   typedef itk::MedianImageFilter<ImageType, ImageType> MedianFilter;
    MedianFilter::Pointer medianFilter = MeanFilter::New(); 
    ImageType::SizeType radius;
    radius[0] = 1; // radius along x
    radius[1] = 1; // radius along y
    meanFilter->SetRadius( radius );  
 
    ImageType::Pointer tmp;
    tmp = input_image; // got from previous filters
    tmp->DisconnectPipeline();
 
 for(int k=0;k<5;k++)//5 fois de suite
 {
       medianFilter->SetInput( tmp );
        medianFilter->Update();
        tmp = medianFilter->Getoutput();
        tmp->DisconnectPipeline();
 }
 
What do you think? 
 
Isabelle



  _____  

Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez  <http://us.rd.yahoo.com/messenger/mail_taglines/default/*http://fr.messenger.yahoo.com> le ici ! 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20051110/be7ede8a/attachment.htm


More information about the Insight-users mailing list