OpenShot Library | libopenshot
0.4.0
|
This struct holds the information of a bounding-box. More...
#include <TrackedObjectBBox.h>
Public Member Functions | |
BBox () | |
Blank constructor. More... | |
BBox (float _cx, float _cy, float _width, float _height, float _angle) | |
std::string | Json () const |
Generate JSON string of this object. More... | |
Json::Value | JsonValue () const |
Generate Json::Value for this object. More... | |
void | SetJson (const std::string value) |
Load JSON string into this object. More... | |
void | SetJsonValue (const Json::Value root) |
Load Json::Value into this object. More... | |
Public Attributes | |
float | angle = -1 |
bounding box rotation angle [degrees] More... | |
float | cx = -1 |
x-coordinate of the bounding box center More... | |
float | cy = -1 |
y-coordinate of the bounding box center More... | |
float | height = -1 |
bounding box height More... | |
float | width = -1 |
bounding box width More... | |
This struct holds the information of a bounding-box.
A bounding-box is a rectangular shape that enclosures an object or a desired set of pixels in a digital image.
The bounding-box structure holds five floating-point properties: the x and y coordinates of the rectangle's center point (cx, cy), the rectangle's width, height and rotation.
Definition at line 37 of file TrackedObjectBBox.h.
|
inline |
Blank constructor.
Definition at line 46 of file TrackedObjectBBox.h.
|
inline |
Default constructor, which takes the bounding box top-left corner coordinates, width and height.
_cx | X-coordinate of the bounding box center |
_cy | Y-coordinate of the bounding box center |
_width | Bounding box width |
_height | Bounding box height |
_angle | Bounding box rotation angle [degrees] |
Definition at line 54 of file TrackedObjectBBox.h.
|
inline |
Generate JSON string of this object.
Definition at line 65 of file TrackedObjectBBox.h.
|
inline |
Generate Json::Value for this object.
Definition at line 71 of file TrackedObjectBBox.h.
Referenced by Json().
|
inline |
Load JSON string into this object.
Definition at line 84 of file TrackedObjectBBox.h.
|
inline |
Load Json::Value into this object.
Definition at line 101 of file TrackedObjectBBox.h.
Referenced by SetJson().
float openshot::BBox::angle = -1 |
bounding box rotation angle [degrees]
Definition at line 43 of file TrackedObjectBBox.h.
Referenced by BBox(), openshot::TrackedObjectBBox::GetBox(), openshot::TrackedObjectBBox::GetBoxValues(), openshot::Timeline::GetTrackedObjectValues(), openshot::TrackedObjectBBox::InterpolateBoxes(), JsonValue(), and SetJsonValue().
float openshot::BBox::cx = -1 |
x-coordinate of the bounding box center
Definition at line 39 of file TrackedObjectBBox.h.
Referenced by BBox(), openshot::TrackedObjectBBox::GetBox(), openshot::TrackedObjectBBox::GetBoxValues(), openshot::Tracker::GetFrame(), openshot::ObjectDetection::GetFrame(), openshot::Timeline::GetTrackedObjectValues(), openshot::TrackedObjectBBox::InterpolateBoxes(), JsonValue(), openshot::TrackedObjectBBox::PropertiesJSON(), and SetJsonValue().
float openshot::BBox::cy = -1 |
y-coordinate of the bounding box center
Definition at line 40 of file TrackedObjectBBox.h.
Referenced by BBox(), openshot::TrackedObjectBBox::GetBox(), openshot::TrackedObjectBBox::GetBoxValues(), openshot::Tracker::GetFrame(), openshot::ObjectDetection::GetFrame(), openshot::Timeline::GetTrackedObjectValues(), openshot::TrackedObjectBBox::InterpolateBoxes(), JsonValue(), openshot::TrackedObjectBBox::PropertiesJSON(), and SetJsonValue().
float openshot::BBox::height = -1 |
bounding box height
Definition at line 42 of file TrackedObjectBBox.h.
Referenced by BBox(), openshot::TrackedObjectBBox::GetBox(), openshot::TrackedObjectBBox::GetBoxValues(), openshot::Tracker::GetFrame(), openshot::ObjectDetection::GetFrame(), openshot::Timeline::GetTrackedObjectValues(), openshot::TrackedObjectBBox::InterpolateBoxes(), JsonValue(), openshot::TrackedObjectBBox::PropertiesJSON(), and SetJsonValue().
float openshot::BBox::width = -1 |
bounding box width
Definition at line 41 of file TrackedObjectBBox.h.
Referenced by BBox(), openshot::TrackedObjectBBox::GetBox(), openshot::TrackedObjectBBox::GetBoxValues(), openshot::Tracker::GetFrame(), openshot::ObjectDetection::GetFrame(), openshot::Timeline::GetTrackedObjectValues(), openshot::TrackedObjectBBox::InterpolateBoxes(), JsonValue(), openshot::TrackedObjectBBox::PropertiesJSON(), and SetJsonValue().