OSVR Framework (Internal Development Docs)  0.6-1962-g59773924
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
osvr::vbtracker::LedMeasurement Struct Reference

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].
 

Detailed Description

Definition at line 41 of file LedMeasurement.h.

Constructor & Destructor Documentation

osvr::vbtracker::LedMeasurement::LedMeasurement ( cv::Point2f  location,
float  diam,
cv::Size  imgSize,
float  beaconArea = -1 
)
inline

Constructor for a measurement

Parameters
beaconAreameasured area: if <= 0, will be estimated based on an assumption of circularity and the diameter.

Definition at line 52 of file LedMeasurement.h.

osvr::vbtracker::LedMeasurement::LedMeasurement ( cv::KeyPoint const &  kp,
cv::Size  imgSize,
float  beaconArea = -1 
)
inline

Constructor for a measurement from a KeyPoint and image size.

Parameters
beaconAreameasured 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.

osvr::vbtracker::LedMeasurement::LedMeasurement ( float  x,
float  y,
float  diam,
cv::Size  imgSize,
float  beaconArea = -1 
)
inline

Constructor primarily used by replay for calibration/optimization purposes.

Delegates to the constructor taking Point2f.

Definition at line 69 of file LedMeasurement.h.

Member Function Documentation

bool osvr::vbtracker::LedMeasurement::knowBoundingBox ( ) const
inline

Do we know an upright bounding box? (that is, is the next member valid?)

Definition at line 96 of file LedMeasurement.h.

cv::Size2f osvr::vbtracker::LedMeasurement::boundingBoxSize ( ) const
inline

Dimensions of the upright bounding box. only valid if knowBoundingBox();

Definition at line 100 of file LedMeasurement.h.

Member Data Documentation

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.


The documentation for this struct was generated from the following file: