Object Detection result.
More...
#include <detectNet.h>
|
float | Width () const |
| Calculate the height of the object. More...
|
|
float | Height () const |
| Calculate the area of the object. More...
|
|
float | Area () const |
| Return the center of the object. More...
|
|
void | Center (float *x, float *y) const |
| Return true if the coordinate is inside the bounding box. More...
|
|
bool | Contains (float x, float y) const |
| Return true if the bounding boxes overlap. More...
|
|
bool | Overlaps (const Detection &det) const |
| Return true if the bounding boxes overlap. More...
|
|
bool | Overlaps (float x1, float y1, float x2, float y2) const |
| Expand the bounding box if they overlap (return true if so) More...
|
|
bool | Expand (float x1, float y1, float x2, float y2) |
| Expand the bounding box if they overlap (return true if so) More...
|
|
bool | Expand (const Detection &det) |
| Reset all member variables to zero. More...
|
|
void | Reset () |
| Default constructor. More...
|
|
| Detection () |
|
◆ Detection()
detectNet::Detection::Detection |
( |
| ) |
|
|
inline |
◆ Area()
float detectNet::Detection::Area |
( |
| ) |
const |
|
inline |
Return the center of the object.
◆ Center()
void detectNet::Detection::Center |
( |
float * |
x, |
|
|
float * |
y |
|
) |
| const |
|
inline |
Return true if the coordinate is inside the bounding box.
◆ Contains()
bool detectNet::Detection::Contains |
( |
float |
x, |
|
|
float |
y |
|
) |
| const |
|
inline |
Return true if the bounding boxes overlap.
◆ Expand() [1/2]
bool detectNet::Detection::Expand |
( |
float |
x1, |
|
|
float |
y1, |
|
|
float |
x2, |
|
|
float |
y2 |
|
) |
| |
|
inline |
Expand the bounding box if they overlap (return true if so)
◆ Expand() [2/2]
bool detectNet::Detection::Expand |
( |
const Detection & |
det | ) |
|
|
inline |
Reset all member variables to zero.
◆ Height()
float detectNet::Detection::Height |
( |
| ) |
const |
|
inline |
Calculate the area of the object.
◆ Overlaps() [1/2]
bool detectNet::Detection::Overlaps |
( |
const Detection & |
det | ) |
const |
|
inline |
Return true if the bounding boxes overlap.
◆ Overlaps() [2/2]
bool detectNet::Detection::Overlaps |
( |
float |
x1, |
|
|
float |
y1, |
|
|
float |
x2, |
|
|
float |
y2 |
|
) |
| const |
|
inline |
Expand the bounding box if they overlap (return true if so)
◆ Reset()
void detectNet::Detection::Reset |
( |
| ) |
|
|
inline |
◆ Width()
float detectNet::Detection::Width |
( |
| ) |
const |
|
inline |
Calculate the height of the object.
◆ Bottom
float detectNet::Detection::Bottom |
Bottom bounding box coordinate (in pixels)
Calculate the width of the object
◆ ClassID
uint32_t detectNet::Detection::ClassID |
Class index of the detected object.
◆ Confidence
float detectNet::Detection::Confidence |
Confidence value of the detected object.
◆ Instance
uint32_t detectNet::Detection::Instance |
Index of this unique object instance.
◆ Left
float detectNet::Detection::Left |
Left bounding box coordinate (in pixels)
◆ Right
float detectNet::Detection::Right |
Right bounding box coordinate (in pixels)
◆ Top
float detectNet::Detection::Top |
Top bounding box cooridnate (in pixels)
The documentation for this struct was generated from the following file: