|
latest version v1.9 - last update 24 Nov 2005 |
|
#include <ltiGradientFunctor.h>
Inheritance diagram for lti::gradientFunctor:


Public Member Functions | |
| gradientFunctor (const bool initializeParameters=true) | |
| gradientFunctor (const parameters::eOutputFormat &format, const int gradKernelSize=0) | |
| gradientFunctor (const parameters &par) | |
| gradientFunctor (const gradientFunctor &other) | |
| virtual | ~gradientFunctor () |
| virtual const char * | getTypeName () const |
| bool | apply (const channel &src, channel &xOrMag, channel &yOrArg) const |
| bool | apply (const channel &src, channel &mag) const |
| bool | apply (channel &srcdest) const |
| bool | apply (const channel8 &src, channel &xOrMag, channel &yOrArg) const |
| gradientFunctor & | copy (const gradientFunctor &other) |
| gradientFunctor & | operator= (const gradientFunctor &other) |
| virtual functor * | clone () const |
| const parameters & | getParameters () const |
Protected Member Functions | |
| void | cartToPolar (const int dx, const int dy, float &mag, float &angle) const |
One channel gradient computation | |
| bool | computeGradientCart (const channel &src, channel &dx, channel &dy) const |
| bool | xyDifferentiateImageCart (const channel &src, channel &dx, channel &dy) const |
| bool | xyDifferentiateImageCartOpt (const channel &src, channel &dx, channel &dy) const |
| bool | xyDifferentiateImageCartClassicSep (const channel &src, channel &dx, channel &dy) const |
| bool | xyDifferentiateImageCartClassic2D (const channel &src, channel &dx, channel &dy) const |
| bool | xyDifferentiateImageCartInterPixel (const channel &src, channel &dx, channel &dy) const |
| bool | xyDifferentiateImage (const channel8 &src, channel &gradAbs, channel &gradPhi) const |
Protected Attributes | |
| arctanLUT | atan2 |
Classes | |
| class | parameters |
| the parameters for the class gradientFunctor More... | |
Not only the classical simple difference computation (right minus left for the x direction or bottom minus top for the y direction) and the classical Sobel, Prewitt, Robinson, Roberts and Kirsch kernels can be used, but the more sophisticated Ando optimal kernels (see lti::gradientKernelX) and the approximation using oriented gaussian derivatives can be used.
The kernel computes the gradient for lti::channel objects only. For color images you can use one of the derived classes.
|
|
Default constructor.
|
|
||||||||||||
|
Construct a functor using gradient kernels with the specified values.
|
|
|
Construct a functor using the given parameters.
|
|
|
copy constructor
|
|
|
destructor
|
|
||||||||||||||||
|
Computes the gradient of the given channel.
Reimplemented in lti::colorContrastGradient. |
|
|
Computes the gradient magnitude of the given channel.
|
|
||||||||||||
|
Computes the gradient magnitude of the given channel.
|
|
||||||||||||||||
|
Computes the gradient of the given channel.
Reimplemented in lti::colorContrastGradient. |
|
||||||||||||||||||||
|
convert a pair of values in cartesic system into a pair in polar system The LUT takes care that the returned value lies between 0 and 2*Pi |
|
|
returns a pointer to a clone of this functor.
Implements lti::functor. Reimplemented in lti::colorContrastGradient. |
|
||||||||||||||||
|
compute the gradient of the src channel8 using the adecuate method xyDifferentiateXYZ
|
|
|
copy data of "other" functor.
|
|
|
returns used parameters
Reimplemented from lti::transform. Reimplemented in lti::colorContrastGradient. |
|
|
returns the name of this type ("gradientFunctor")
Reimplemented from lti::transform. Reimplemented in lti::colorContrastGradient. |
|
|
alias for copy member
|
|
||||||||||||||||
|
Differentiate the image in X and Y directions using operator (-1 0 1) The result will be directly in polar coordinates.
|
|
||||||||||||||||
|
differentiate the image in X and Y directions using operator (-1 0 1)
|
|
||||||||||||||||
|
differentiate the image in X and Y directions using classic gradients.
|
|
||||||||||||||||
|
differentiate the image in X and Y directions using optimal operators.
|
|
||||||||||||||||
|
Roberts operator. calculates the gradient at the center of a 2x2 mask. The position marked with "S" is the position where the gradient is stored at in the output channels:
( S +) ( + +) (The origin (0,0) is at the bottom left of the image)
|
|
||||||||||||||||
|
differentiate the image in X and Y directions using optimal operators.
|
|
|
Look-Up Table for computation of arc tangent.
|