#include <robertGradient.h>
Inheritance diagram for iptk::RobertGradient:
The algorithm for the Robert's gradient extraction can be found in any standard textbook on image processing. This class also extracts a gradient-map. Information on the gradient-map can be got from the documentation of the class iptk::Gradient. Gradients along the horizontal and the vertical are extracted separately as Gx
and Gy
. The net gradient is then calculated as
G = sqrt(Gx^2 + Gy^2)
The direction of the gradient is calculated as
PHI = atan2(Gy/Gx)
The gradients Gx and Gy are extracted separately as directional-gradients in two different images.
Public Member Functions | |
RobertGradient (void) | |
Default Constructor. | |
RobertGradient (const Image &im) | |
Image registering constructor. | |
RobertGradient (const RobertGradient &rg) | |
Copy Constructor. | |
virtual void | process (void) |
The function which does the actual gradient extraction. | |
virtual iptk::Image | getResult (void) |
Returns the resulting gradient image. | |
iptk::Image | getHorizontalGradient (void) |
Returns the horizontal gradient. | |
iptk::Image | getVerticalGradient (void) |
Returns the vertical gradient. |
|
Default Constructor.
|
|
Image registering constructor. The image is automatically registered at the construction stage. |
|
Copy Constructor.
|
|
Returns the horizontal gradient.
|
|
Returns the resulting gradient image.
Reimplemented from iptk::Gradient. |
|
Returns the vertical gradient.
|
|
The function which does the actual gradient extraction.
Reimplemented from iptk::Gradient. |