[Insight-users] Threaded Gaussian Filter

Mike Jackson mike.jackson at bluequartz.net
Thu Oct 1 16:29:12 EDT 2009


typedef itk::GaussianBlurImageFunction< FloatImageType >
       GFunctionType;

This is paired with some iterators to visit every pixel. Currently I
am manually threading the loop that looks at every pixel which should
scale reasonably well for the number of threads that I expect to throw
at it (16).

_________________________________________________________
Mike Jackson                  mike.jackson at bluequartz.net

On Thu, Oct 1, 2009 at 3:59 PM, Karthik Krishnan
<karthik.krishnan at kitware.com> wrote:
> Which gaussian smoothing / convolution filter are you using ?
> itk::DiscreteGaussianImageFilter or itk::RecursiveGaussianImageFilter.
>
> In any case, both are threaded. However the execution time differs
> based on the filter you use.
>
> The first is slower, uses a neighborhood operator and visits each
> pixel with a gaussian kernel. Its speed will depend on the
> MaximumKernelWidth parameter given to the filter.
>
> The second is an IIR filter, however its much faster for a large
> image, its implemented using a separable kernel and is based on
> Deriche's approximation. (Its not based on a pixel wise neighborhood
> convolution operation).
>
>
>
> On Thu, Oct 1, 2009 at 1:41 PM, Mike Jackson
> <mike.jackson at bluequartz.net> wrote:
>> Anyone have a threaded version of the Gaussian Filter? I am currently
>> using the example code for a Gaussian filter from the ITK distribution
>> and for the image size I am throwing at it, the iteration loop takes a
>> long time because it performs the filter serially on every pixel.
>>
>> Thanks
>> _________________________________________________________
>> Mike Jackson                  mike.jackson at bluequartz.net
>> BlueQuartz Software                    www.bluequartz.net
>> Principal Software Engineer                  Dayton, Ohio
>> _____________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> 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://www.itk.org/mailman/listinfo/insight-users
>>
>
>
>
> --
> Karthik Krishnan
> R&D Engineer,
> Kitware Inc.
> Ph: 518 881 4919
> Fax: 518 371 4573
>


More information about the Insight-users mailing list