IntegralGradient is used for calculating rectangular image gradients rapidly
More...
#include <IntegralImage.h>
|
void | GetAveGradient (CvRect &rect, double *dirx, double *diry) |
| Calculate the average gradient for the given rectangular area in the image. More...
|
|
void | GetGradient (CvRect &rect, double *dirx, double *diry, int *count=0) |
| Calculate the gradient for the given rectangular area in the image. More...
|
|
| IntegralGradient () |
|
void | Update (IplImage *gray) |
| Update intermediate images for calculating the gradients to the given image. More...
|
|
| ~IntegralGradient () |
|
IntegralGradient is used for calculating rectangular image gradients rapidly
We calculate IntegralImage:s based on point normals for 4-pixel intersections (see Donahue1992). Using the integral images it is possible to make fast gradient calculations to any image rectangle. This approach is useful when we need to calculate many gradient rectangles for the same image.
(See SampleIntegralImage.cpp)
- Examples:
- SampleIntegralImage.cpp.
Definition at line 136 of file IntegralImage.h.
alvar::IntegralGradient::IntegralGradient |
( |
| ) |
|
alvar::IntegralGradient::~IntegralGradient |
( |
| ) |
|
void alvar::IntegralGradient::CalculatePointNormals |
( |
IplImage * |
gray | ) |
|
|
protected |
void alvar::IntegralGradient::GetAveGradient |
( |
CvRect & |
rect, |
|
|
double * |
dirx, |
|
|
double * |
diry |
|
) |
| |
Calculate the average gradient for the given rectangular area in the image.
- Parameters
-
dirx | Method fills in the x-component of the gradient here |
diry | Method fills in the y-component of the gradient here |
- Examples:
- SampleIntegralImage.cpp.
Definition at line 187 of file IntegralImage.cpp.
void alvar::IntegralGradient::GetGradient |
( |
CvRect & |
rect, |
|
|
double * |
dirx, |
|
|
double * |
diry, |
|
|
int * |
count = 0 |
|
) |
| |
Calculate the gradient for the given rectangular area in the image.
- Parameters
-
dirx | Method fills in the x-component of the gradient here |
diry | Method fills in the y-component of the gradient here |
count | If this parameter is not 0 it is filled with number of pixels in the rectangle. |
Definition at line 181 of file IntegralImage.cpp.
void alvar::IntegralGradient::Update |
( |
IplImage * |
gray | ) |
|
Update intermediate images for calculating the gradients to the given image.
- Parameters
-
gray | The original grayscale image we want analyze |
- Examples:
- SampleIntegralImage.cpp.
Definition at line 176 of file IntegralImage.cpp.
IplImage* alvar::IntegralGradient::normalx |
|
protected |
IplImage* alvar::IntegralGradient::normaly |
|
protected |
The documentation for this class was generated from the following files: