Ocean
|
This class holds the relevant information of a detected marker point. More...
#include <Point.h>
Public Member Functions | |
Point ()=default | |
Creates a new invalid point. | |
Point (const Vector2 &observation, const unsigned int radius, const float strength) | |
Creates a new point. | |
const Vector2 & | observation () const |
Returns the 2D observation location in the camera image. | |
float | strength () const |
Returns th strength of the point, positive for black points on white background, negative for white points on black background. | |
bool | sign () const |
Returns the sign of the point, true for black points on white background, false for white points on black background. | |
unsigned int | radius () const |
Returns the radius of this point (the scale of the point). | |
bool | isValid () const |
Returns whether this point is valid. | |
Protected Attributes | |
Vector2 | observation_ = Vector2::minValue() |
The 2D observation of the point within the camera image. | |
unsigned int | radius_ = 0u |
The radius of the point (the scale of the point), in pixel, with range [1, infinity) | |
float | strength_ = 0.0f |
The strength of the point, positive for black points on white background, negative for white points on black background, with range (-infinity, infinity) | |
This class holds the relevant information of a detected marker point.
A point is defined by an 2D observation location in the camera image, an approximated radius of the point, a sign (black vs. white), and a strength value.
|
default |
Creates a new invalid point.
|
inline |
Creates a new point.
observation | The 2D observation location in the camera image, must be valid |
radius | The approximated radius of the point, in pixel, with range [1, infinity) |
strength | The strength of the point, with range [0, infinity) |
|
inline |
Returns whether this point is valid.
|
inline |
Returns the 2D observation location in the camera image.
|
inline |
Returns the radius of this point (the scale of the point).
|
inline |
Returns the sign of the point, true for black points on white background, false for white points on black background.
|
inline |
Returns th strength of the point, positive for black points on white background, negative for white points on black background.
|
protected |
The 2D observation of the point within the camera image.
|
protected |
The radius of the point (the scale of the point), in pixel, with range [1, infinity)
|
protected |
The strength of the point, positive for black points on white background, negative for white points on black background, with range (-infinity, infinity)