[Insight-users] GradientImageFilter
Luis Ibanez
luis.ibanez at kitware.com
Tue Jul 27 20:59:15 EDT 2004
Hi Ramzy,
If you need the two components separately you can
use the RecursiveGaussianImageFilter.
http://www.itk.org/Insight/Doxygen/html/classitk_1_1RecursiveGaussianImageFilter.html
You will find this filter described in the SoftwareGuide
http://www.itk.org/ItkSoftwareGuide.pdf
Note that use of the SetDirection() method
and the methods
void SetZeroOrder ()
void SetFirstOrder ()
void SetSecondOrder ()
Note also that, in principle, you should smooth the other
direction with the same sigma that you user for the
derivative along the selected direction.
If you want to get the two component together in the
form of an image of Vectors, then you can simply use the
http://www.itk.org/Insight/Doxygen/html/classitk_1_1GradientRecursiveGaussianImageFilter.html
You will have examples on the use of these filters
in the directory:
Insight/Examples/Filtering
those examples are described in the text of the Software
Guide.
Regards,
Luis
---------------------
Ramzy Darwish wrote:
> Hello all,
> For a project I am working on, I need to calculate the gradient at each
> pixel in each direction (x & y).
>
> Is there a way to get GradientImageFilter to do the two separately? Or
> do I somehow tell it which direction I want in the typedef's?
>
> Thanks,
> ramzy
>
> _________________________________________________________________
More information about the Insight-users
mailing list