[Insight-users] need advice
Renaud Isabelle
renauisa at yahoo.fr
Thu Nov 10 13:58:38 EST 2005
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 le ici !
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20051110/a22f8e9a/attachment.html
More information about the Insight-users
mailing list