Element::Element |
( |
std::vector< int > |
position, |
|
|
std::vector< int > |
box_size |
|
) |
| |
Constructor
- Parameters
-
position | The vector with position of the topleft corner of the element (x, y) |
box_size | The vector with the size of the bounding box of the element (width, height) |
std::vector< int > Element::GetBoxSize |
( |
| ) |
|
Gets the size of the bounding box of the element
- Returns
- The vector with the size of the bounding box of the element
int Element::GetCenterX |
( |
| ) |
|
Gets the x value of center of the bounding box of this element.
- Returns
- The x position of the center
int Element::GetCenterY |
( |
| ) |
|
Gets the y value of center of the bounding box of this element.
- Returns
- The y position of the center
Gets the maximal x position of the bounding box of this element.
- Returns
- The maximal x position
Gets the maximal y position of the bounding box of this element.
- Returns
- The maximal y position
Gets the minimal x position of the bounding box of this element.
- Returns
- The minimal x position
Gets the minimal y position of the bounding box of this element.
- Returns
- The minimal y position
std::vector< int > Element::GetPosition |
( |
| ) |
|
Gets the position of the element
- Returns
- The vector with the position of the element
The documentation for this class was generated from the following files:
- src/ObjectDetection/element.h
- src/ObjectDetection/element.cpp