MantisBT - ITK
View Issue Details
0005292ITKpublic2007-07-04 11:202007-07-05 13:02
Ivan Macia 
Luis Ibanez 
highmajoralways
closedfixed 
 
 
0005292: Wrong computation of gaussian derivatives in HessianRecursiveGaussianImageFilter
As pointed out by Won-Ki Jeong
http://public.kitware.com/pipermail/insight-users/2007-July/022770.html [^]
when computing second order derivatives in the same direction twice, for example (G*I)xx, the filter applies 1D recursive Gaussian order-1 derivative filter twice along x and applies 1D recursive Gaussian filter along y, that means along x the Gaussian is applied twice but there is no Gaussian for z direction. The same applies for (G*I)yy and (G*I)zz in 3D.

The number of smoothing filter is fixed in the static member NumberOfSmoothingFilters = ImageDimension-2, so in the 3D case there is only a single smoothing filter where there should by two for computing (G*I)xx

I made a small test with a 3D MRI image, applied HessianRecursiveGaussian filter with sigma = 5.0 and extracted the six components of the hessian tensor. The attached image shows an slice of the original image and the sixth component (G*I)zz of the hessian matrix of the same slice. It seems like there is smoothing in x but no smoothing in y (see the narrow horizontal lines).
No tags attached.
zip MRI_HessianGzz_Slice44.zip (29,570) 1969-12-31 19:00
https://public.kitware.com/Bug/file/1060/MRI_HessianGzz_Slice44.zip
? itkHessianRecursiveGaussianImageFilter.txx (7,244) 1969-12-31 19:00
https://public.kitware.com/Bug/file/1061/itkHessianRecursiveGaussianImageFilter.txx
? itkHessianRecursiveGaussianImageFilter.h (6,441) 1969-12-31 19:00
https://public.kitware.com/Bug/file/1062/itkHessianRecursiveGaussianImageFilter.h
jpg MRI_HessianGzz_Slice44_Fixed.jpg (8,719) 1969-12-31 19:00
https://public.kitware.com/Bug/file/1063/MRI_HessianGzz_Slice44_Fixed.jpg
jpg
Issue History

Notes
(0007991)
Ivan Macia   
2007-07-04 12:41   
I uploaded an updated version that fixes the problem
(0007992)
Luis Ibanez   
2007-07-05 11:48   
This bug is a duplicate report from 4934.
A fix has been committed to the CVS repository.

Ivan, could you please report what version of ITK are you using ?
(0007996)
Luis Ibanez   
2007-07-05 13:02   
The issue has been fixed on bug 0004934.
http://public.kitware.com/pipermail/insight-users/2007-July/022794.html [^]