GDAL
|
Class for handling octave layers in SURF-based algorithm. More...
#include <gdal_simplesurf.h>
Public Member Functions | |
GDALOctaveMap (int nOctaveStart, int nOctaveEnd) | |
Create octave space. More... | |
void | ComputeMap (GDALIntegralImage *poImg) |
Calculate Hessian values for octave space (for all stored octave layers) using specified integral image. More... | |
bool | PointIsExtremum (int row, int col, GDALOctaveLayer *bot, GDALOctaveLayer *mid, GDALOctaveLayer *top, double threshold) |
Method makes decision that specified point in middle octave layer is maximum among all points from 3x3x3 neighbourhood (surrounding points in bottom, middle and top layers). More... | |
Public Attributes | |
GDALOctaveLayer *** | pMap |
2-dimensional array of octave layers | |
int | octaveStart |
Number of bottom octave. | |
int | octaveEnd |
Number of top octave. More... | |
Static Public Attributes | |
static const int | INTERVALS = 4 |
Value for constructing internal octave space. | |
Class for handling octave layers in SURF-based algorithm.
Class contains OctaveLayers and provides capability to construct octave space and distinguish feature points. Normally this class is used only by SURF-based algorithm.
GDALOctaveMap::GDALOctaveMap | ( | int | nOctaveStart, |
int | nOctaveEnd | ||
) |
Create octave space.
Octave numbers are start with one. (1, 2, 3, 4, ... )
nOctaveStart | Number of bottom octave |
nOctaveEnd | Number of top octave. Should be equal or greater than OctaveStart |
void GDALOctaveMap::ComputeMap | ( | GDALIntegralImage * | poImg | ) |
Calculate Hessian values for octave space (for all stored octave layers) using specified integral image.
poImg | Integral image instance which provides necessary data |
bool GDALOctaveMap::PointIsExtremum | ( | int | row, |
int | col, | ||
GDALOctaveLayer * | bot, | ||
GDALOctaveLayer * | mid, | ||
GDALOctaveLayer * | top, | ||
double | threshold | ||
) |
Method makes decision that specified point in middle octave layer is maximum among all points from 3x3x3 neighbourhood (surrounding points in bottom, middle and top layers).
Provided layers should be from the same octave's interval. Detects feature points.
row | Row of point, which is candidate to be feature point |
col | Column of point, which is candidate to be feature point |
bot | Bottom octave layer |
mid | Middle octave layer |
top | Top octave layer |
threshold | Threshold for feature point recognition. Detected feature point will have Hessian value greater than this provided threshold. |
int GDALOctaveMap::octaveEnd |
Number of top octave.
Should be equal or greater than OctaveStart