Public Member Functions | Static Public Attributes | List of all members
GDALFeaturePoint Class Reference

Class of "feature point" in raster. More...

#include <gdal_simplesurf.h>

Public Member Functions

 GDALFeaturePoint ()
 Standard constructor. More...
 GDALFeaturePoint (const GDALFeaturePoint &fp)
 Copy constructor. More...
 GDALFeaturePoint (int nX, int nY, int nScale, int nRadius, int nSign)
 Create instance of GDALFeaturePoint class. More...
GDALFeaturePointoperator= (const GDALFeaturePoint &point)
 Assignment operator.
double & operator[] (int nIndex)
 Provide access to point's descriptor. More...
int GetX () const
 Fetch X-coordinate (pixel) of point. More...
void SetX (int nX)
 Set X coordinate of point. More...
int GetY () const
 Fetch Y-coordinate (line) of point. More...
void SetY (int nY)
 Set Y coordinate of point. More...
int GetScale () const
 Fetch scale of point. More...
void SetScale (int nScale)
 Set scale of point. More...
int GetRadius () const
 Fetch radius of point. More...
void SetRadius (int nRadius)
 Set radius of point. More...
int GetSign () const
 Fetch sign of Hessian determinant of point. More...
void SetSign (int nSign)
 Set sign of point. More...

Static Public Attributes

static const int DESC_SIZE = 64
 Descriptor length.

Detailed Description

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.

Constructor & Destructor Documentation

GDALFeaturePoint::GDALFeaturePoint ( )

Standard constructor.

Initializes all parameters with negative numbers and allocates memory for descriptor.

GDALFeaturePoint::GDALFeaturePoint ( const GDALFeaturePoint fp)

Copy constructor.

fpCopied instance of GDALFeaturePoint class
GDALFeaturePoint::GDALFeaturePoint ( int  nX,
int  nY,
int  nScale,
int  nRadius,
int  nSign 

Create instance of GDALFeaturePoint class.

nXX-coordinate (pixel)
nYY-coordinate (line)
nScaleScale which contains this point (2, 4, 8, 16 and so on)
nRadiusHalf of the side of descriptor area
nSignSign of Hessian determinant for this point
This constructor normally is invoked by SURF-based algorithm, which provides all necessary parameters.

Member Function Documentation

int GDALFeaturePoint::GetRadius ( ) const

Fetch radius of point.

Radius for this point.
int GDALFeaturePoint::GetScale ( ) const

Fetch scale of point.

Scale for this point.
int GDALFeaturePoint::GetSign ( ) const

Fetch sign of Hessian determinant of point.

Sign for this point.
int GDALFeaturePoint::GetX ( ) const

Fetch X-coordinate (pixel) of point.

X-coordinate in pixels
int GDALFeaturePoint::GetY ( ) const

Fetch Y-coordinate (line) of point.

Y-coordinate in pixels.
double & GDALFeaturePoint::operator[] ( int  nIndex)

Provide access to point's descriptor.

nIndexPosition of descriptor's value. nIndex should be within range from 0 to DESC_SIZE (in current version - 64)
Reference to value of descriptor in 'nIndex' position. If index is out of range then behaviour is undefined.
void GDALFeaturePoint::SetRadius ( int  nRadius)

Set radius of point.

nRadiusRadius for this point.
void GDALFeaturePoint::SetScale ( int  nScale)

Set scale of point.

nScaleScale for this point.
void GDALFeaturePoint::SetSign ( int  nSign)

Set sign of point.

nSignSign of Hessian determinant for this point.
void GDALFeaturePoint::SetX ( int  nX)

Set X coordinate of point.

nXX coordinate in pixels
void GDALFeaturePoint::SetY ( int  nY)

Set Y coordinate of point.

nYY coordinate in pixels.

The documentation for this class was generated from the following files:

Generated for GDAL by doxygen 1.8.8.