[ITK-users] one dimensional median filter, incredibly slow

Richard Beare richard.beare at gmail.com
Thu Apr 9 02:29:02 EDT 2015


Those old rank filters were designed to do big kernels quickly - they
summarize the contents of the kernel in a histogram which needs to be
updated as the kernel goes from one voxel to the next.
For a tiny kernel the histogram overhead is going to kill the performance,
and a direct approach will be better.

On Thu, Apr 9, 2015 at 12:01 PM, Matt McCormick <matt.mccormick at kitware.com>
wrote:

> Hi jp,
>
> How does the MedianImageFilter compare?
>
> Thanks,
> Matt
>
> On Wed, Apr 8, 2015 at 10:46 AM, jp <cervellone at gmail.com> wrote:
> > Dear all,
> > i would like to apply a median filter but only in one image dimension,
> so i
> > use the rank image filter with a box structuring  element. of radius
> 0,0,1.
> > While the result is what i want the speed is abysmal.
> > Does anyone have an idea ?
> >
> > I am currenlly using itk 4.4.2 through python.
> >
> > Here is the code:
> >
> > strel = itk.FlatStructuringElement[3].Box([0,0,1])
> > median = itk.RankImageFilter[itkType,itkType, strel].New(reader,
> > Kernel=strel)
> >
> > Thanks very much
> >
> > jp
> >
> >
> >
> >
> > --
> > View this message in context:
> http://itk-users.7.n7.nabble.com/one-dimensional-median-filter-incredibly-slow-tp35473.html
> > Sent from the ITK - Users mailing list archive at Nabble.com.
> > _____________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Kitware offers ITK Training Courses, for more information visit:
> > http://www.kitware.com/products/protraining.php
> >
> > Please keep messages on-topic and check the ITK FAQ at:
> > http://www.itk.org/Wiki/ITK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://public.kitware.com/mailman/listinfo/insight-users
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/insight-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20150409/829bbbdd/attachment.html>


More information about the Insight-users mailing list