Public Member Functions | |
LedMeasurement (cv::Point2f location, float diam, cv::Size imgSize, float beaconArea=-1) | |
LedMeasurement (cv::KeyPoint const &kp, cv::Size imgSize, float beaconArea=-1) | |
LedMeasurement (float x, float y, float diam, cv::Size imgSize, float beaconArea=-1) | |
bool | knowBoundingBox () const |
cv::Size2f | boundingBoxSize () const |
void | setBoundingBox (cv::Size2f size) |
Set the upright bounding box (from a size) | |
void | setBoundingBox (cv::Rect const &box) |
Set the upright bounding box (from a Rect) | |
bool | operator== (LedMeasurement const &other) const |
Public Attributes | |
cv::Point2f | loc |
cv::Size | imageSize |
Size of the image the measurement came from. | |
Brightness | brightness |
"Brightness" - currently actually diameter. | |
float | diameter = 0.f |
Blob diameter in pixels. | |
float | area = 1.f |
Area in pixels. | |
float | circularity = 0.f |
Blob circularity (as defined by OpenCV) - in [0,1]. | |
Definition at line 41 of file LedMeasurement.h.
|
inline |
Constructor for a measurement
beaconArea | measured area: if <= 0, will be estimated based on an assumption of circularity and the diameter. |
Definition at line 52 of file LedMeasurement.h.
|
inline |
Constructor for a measurement from a KeyPoint and image size.
beaconArea | measured area: if <= 0, will be estimated based on an assumption of circularity and the diameter. |
Delegates to the constructor taking Point2f.
Definition at line 61 of file LedMeasurement.h.
|
inline |
Constructor primarily used by replay for calibration/optimization purposes.
Delegates to the constructor taking Point2f.
Definition at line 69 of file LedMeasurement.h.
|
inline |
Do we know an upright bounding box? (that is, is the next member valid?)
Definition at line 96 of file LedMeasurement.h.
|
inline |
Dimensions of the upright bounding box. only valid if knowBoundingBox();
Definition at line 100 of file LedMeasurement.h.
cv::Point2f osvr::vbtracker::LedMeasurement::loc |
Location in image space - should be undistorted when passed to the Led class.
Definition at line 77 of file LedMeasurement.h.