GDAL
|
Class of "feature point" in raster. More...
#include <gdal_simplesurf.h>
Public Member Functions | |
GDALFeaturePoint () | |
Standard constructor. | |
GDALFeaturePoint (const GDALFeaturePoint &fp) | |
Copy constructor. | |
GDALFeaturePoint (int nX, int nY, int nScale, int nRadius, int nSign) | |
Create instance of GDALFeaturePoint class. | |
GDALFeaturePoint & | operator= (const GDALFeaturePoint &point) |
double & | operator[] (int nIndex) |
Provide access to point's descriptor. | |
int | GetX () |
Fetch X-coordinate (pixel) of point. | |
void | SetX (int nX) |
Set X coordinate of point. | |
int | GetY () |
Fetch Y-coordinate (line) of point. | |
void | SetY (int nY) |
Set Y coordinate of point. | |
int | GetScale () |
Fetch scale of point. | |
void | SetScale (int nScale) |
Set scale of point. | |
int | GetRadius () |
Fetch radius of point. | |
void | SetRadius (int nRadius) |
Set radius of point. | |
int | GetSign () |
Fetch sign of Hessian determinant of point. | |
void | SetSign (int nSign) |
Set sign of point. | |
Static Public Attributes | |
static const int | DESC_SIZE = 64 |
Class of "feature point" in raster.
Used by SURF-based algorithm.
This point presents coordinates of distinctive pixel in image. In computer vision, feature points - the most "strong" and "unique" pixels (or areas) in picture, which can be distinguished from others. For more details, see FAST corner detector, SIFT, SURF and similar algorithms.
Standard constructor.
Initializes all parameters with negative numbers and allocates memory for descriptor.
GDALFeaturePoint::GDALFeaturePoint | ( | const GDALFeaturePoint & | fp | ) |
Copy constructor.
fp | Copied instance of GDALFeaturePoint class |
GDALFeaturePoint::GDALFeaturePoint | ( | int | nX, |
int | nY, | ||
int | nScale, | ||
int | nRadius, | ||
int | nSign | ||
) |
Create instance of GDALFeaturePoint class.
nX | X-coordinate (pixel) |
nY | Y-coordinate (line) |
nScale | Scale which contains this point (2, 4, 8, 16 and so on) |
nRadius | Half of the side of descriptor area |
nSign | Sign of Hessian determinant for this point |
int GDALFeaturePoint::GetRadius | ( | ) |
Fetch radius of point.
int GDALFeaturePoint::GetScale | ( | ) |
Fetch scale of point.
int GDALFeaturePoint::GetSign | ( | ) |
Fetch sign of Hessian determinant of point.
int GDALFeaturePoint::GetX | ( | ) |
Fetch X-coordinate (pixel) of point.
int GDALFeaturePoint::GetY | ( | ) |
Fetch Y-coordinate (line) of point.
double & GDALFeaturePoint::operator[] | ( | int | nIndex | ) |
Provide access to point's descriptor.
nIndex | Position of descriptor's value. nIndex should be within range from 0 to DESC_SIZE (in current version - 64) |
void GDALFeaturePoint::SetRadius | ( | int | nRadius | ) |
Set radius of point.
nRadius | Radius for this point. |
void GDALFeaturePoint::SetScale | ( | int | nScale | ) |
Set scale of point.
nScale | Scale for this point. |
void GDALFeaturePoint::SetSign | ( | int | nSign | ) |
Set sign of point.
nSign | Sign of Hessian determinant for this point. |
void GDALFeaturePoint::SetX | ( | int | nX | ) |
Set X coordinate of point.
nX | X coordinate in pixels |
void GDALFeaturePoint::SetY | ( | int | nY | ) |
Set Y coordinate of point.
nY | Y coordinate in pixels. |