Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Private Attributes
icl::filter::GradientImage Class Reference

Class for calculation of gradient image information. More...

#include <GradientImage.h>

List of all members.

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.
void update (const core::ImgBase *src, calculationMode mode=calculateAll)
 Main function calculates new gradient image information.
const core::Img16sgetGradXImage () const
 return current X-Gradient image
const core::Img16sgetGradYImage () const
 return current Y-Gradient image
const core::Img32fgetGradIntensityImage () const
 return current Gradient-Intensity image
const core::Img32fgetGradAngleImage () const
 return current Gradient-Angle image
void normalize ()
 internally normalizes all images to range [0,255]

Private Attributes

core::Img16s m_oBuf
core::Img16s m_oX
core::Img16s m_oY
core::Img32f m_oI
core::Img32f m_oA

Detailed Description

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.


Member Enumeration Documentation

flags to indicate which gradient information should be calculated

Enumerator:
calculateXYOnly 

only calculate X- and Y-Gradient

calculateIntensity 

X/Y-Gradient and intensity map.

calculateAngle 

X/Y-Gradient and angle map.

calculateAll 

X/Y-Gradient, intensity- and angle map.


Constructor & Destructor Documentation

Empty constructor.


Member Function Documentation

return current Gradient-Angle image

return current Gradient-Intensity image

return current X-Gradient image

return current Y-Gradient image

internally normalizes all images to range [0,255]

Main function calculates new gradient image information.


Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines