|
GDAL
|
Integral image class (summed area table). More...
#include <gdal_simplesurf.h>
Public Member Functions | |
| void | Initialize (const double **padfImg, int nHeight, int nWidth) |
| Compute integral image for specified array. More... | |
| double | GetValue (int nRow, int nCol) |
| Fetch value of specified position in integral image. More... | |
| double | GetRectangleSum (int nRow, int nCol, int nWidth, int nHeight) |
| Get sum of values in specified rectangular grid. More... | |
| double | HaarWavelet_X (int nRow, int nCol, int nSize) |
| Get value of horizontal Haar wavelet in specified square grid. More... | |
| double | HaarWavelet_Y (int nRow, int nCol, int nSize) |
| Get value of vertical Haar wavelet in specified square grid. More... | |
| int | GetHeight () |
| Fetch height of integral image. More... | |
| int | GetWidth () |
| Fetch width of integral image. More... | |
Integral image class (summed area table).
Integral image is a table for fast computing the sum of values in rectangular subarea. In more detail, for 2-dimensional array of numbers this class provides capability to get sum of values in rectangular arbitrary area with any size in constant time. Integral image is constructed from grayscale picture.
| int GDALIntegralImage::GetHeight | ( | ) |
Fetch height of integral image.
| double GDALIntegralImage::GetRectangleSum | ( | int | nRow, |
| int | nCol, | ||
| int | nWidth, | ||
| int | nHeight | ||
| ) |
Get sum of values in specified rectangular grid.
Rectangle is constructed from left top point.
| nRow | Row of left top point of rectangle |
| nCol | Column of left top point of rectangle |
| nWidth | Width of rectangular area (number of columns) |
| nHeight | Height of rectangular area (number of rows) |
| double GDALIntegralImage::GetValue | ( | int | nRow, |
| int | nCol | ||
| ) |
Fetch value of specified position in integral image.
| nRow | Row of this position |
| nCol | Column of this position |
| int GDALIntegralImage::GetWidth | ( | ) |
Fetch width of integral image.
| double GDALIntegralImage::HaarWavelet_X | ( | int | nRow, |
| int | nCol, | ||
| int | nSize | ||
| ) |
Get value of horizontal Haar wavelet in specified square grid.
| nRow | Row of left top point of square |
| nCol | Column of left top point of square |
| nSize | Side of the square |
| double GDALIntegralImage::HaarWavelet_Y | ( | int | nRow, |
| int | nCol, | ||
| int | nSize | ||
| ) |
Get value of vertical Haar wavelet in specified square grid.
| nRow | Row of left top point of square |
| nCol | Column of left top point of square |
| nSize | Side of the square |
| void GDALIntegralImage::Initialize | ( | const double ** | padfImg, |
| int | nHeight, | ||
| int | nWidth | ||
| ) |
Compute integral image for specified array.
Result is stored internally.
| padfImg | Pointer to 2-dimensional array of values |
| nHeight | Number of rows in array |
| nWidth | Number of columns in array |