[Insight-users] 3D Gaussian blurring

Luis Ibanez luis.ibanez at kitware.com
Wed, 21 Apr 2004 11:32:35 -0400


Hi Robert,


You may want to try the SmoothingRecursiveGaussianImageFilter
http://www.itk.org/Insight/Doxygen/html/classitk_1_1SmoothingRecursiveGaussianImageFilter.html

It will manage an input image of pixel type
"unsigned char" (among others).

---

Just for the record: you could also convert the pixel type
of your image by using the CastImageFilter
http://www.itk.org/Insight/Doxygen/html/classitk_1_1CastImageFilter.html


Regards,


   Luis



-----------------------
Robert Maroon wrote:

> Hi all,
>  
> I am currently trying to write an application which takes as input a raw 
> volume (via a metafile header) and runs a gaussian smoothing filter on 
> the data. I am trying to use the DiscreteGaussianImageFilter but I'm 
> having problems since the data I am trying to input is made up of 
> unsigned chars. When I pass it to the filter I get back a volume of all 
> NANs.
>  
> Any ideas on how I can fix this? I know the Gaussian filter expects to 
> receive and return floating point values, so is there any way of safely 
> converting my unsigned char volume into floating point, do the blurring 
> and then convert it back or should I use another method? By the way I 
> have set the dimensionality of the image to 3.
>  
> I have also tried to use the Gaussian filter example in 
> Insight-Applications but the 3D version returns everything but the 
> smooth version of the image which is what I need.
>  
> Thanks!
>