![]() |
Image Component Library (ICL)
|
Class for calculation of gradient image information. More...
#include <GradientImage.h>
Public Types | |
| enum | calculationMode { calculateXYOnly =0, calculateIntensity =1, calculateAngle =2, calculateAll =3 } |
| flags to indicate which gradient information should be calculated More... | |
Public Member Functions | |
| GradientImage () | |
| Empty constructor. More... | |
| void | update (const core::ImgBase *src, calculationMode mode=calculateAll) |
| Main function calculates new gradient image information. More... | |
| const core::Img16s & | getGradXImage () const |
| return current X-Gradient image More... | |
| const core::Img16s & | getGradYImage () const |
| return current Y-Gradient image More... | |
| const core::Img32f & | getGradIntensityImage () const |
| return current Gradient-Intensity image More... | |
| const core::Img32f & | getGradAngleImage () const |
| return current Gradient-Angle image More... | |
| void | normalize () |
| internally normalizes all images to range [0,255] More... | |
Private Attributes | |
| core::Img16s | m_oBuf |
| core::Img16s | m_oX |
| core::Img16s | m_oY |
| core::Img32f | m_oI |
| core::Img32f | m_oA |
Class for calculation of gradient image information.
The GradientImage class provides functionalities for the calculation of the following gradient image information:


For best performance, the input image is restricted to be of type Img8u. The update function will firstly calculate X- and Y-Gradient information using a ConvolutionOp object. X- and Y-Gradient image have range [0,255] now (result of Sobel-Filter is internally scaled to the range of the used datatype icl8u. Further calculation of gradient intensity and gradient angle depends on the given calculation mode flag.
|
inline |
Empty constructor.
|
inline |
return current Gradient-Angle image
|
inline |
return current Gradient-Intensity image
|
inline |
return current X-Gradient image
|
inline |
return current Y-Gradient image
| void icl::filter::GradientImage::normalize | ( | ) |
internally normalizes all images to range [0,255]
| void icl::filter::GradientImage::update | ( | const core::ImgBase * | src, |
| calculationMode | mode = calculateAll |
||
| ) |
Main function calculates new gradient image information.
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.15