![]() |
Zivid C++ API 2.18.0+1b44dbef-1
|
Defines a 2D rectangular bounding box in image coordinates. More...
#include <Zivid/BoundingBox.h>
Public Types | |
| using | ValueType = int |
| The type of the coordinate values. | |
Public Member Functions | |
| BoundingBox ()=default | |
| constexpr | BoundingBox (int xCoord, int yCoord, int boxWidth, int boxHeight) |
| Constructor. | |
| ZIVID_UTILS_EXPORT std::string | toString () const |
| Get string representation. | |
| ZIVID_UTILS_EXPORT bool | operator== (const BoundingBox &rhs) const |
| Check for equality. | |
| ZIVID_UTILS_EXPORT bool | operator!= (const BoundingBox &rhs) const |
| Check for inequality. | |
Public Attributes | |
| ValueType | x |
| Top-left corner x coordinate. | |
| ValueType | y |
| Top-left corner y coordinate. | |
| ValueType | width |
| Width of the bounding box. | |
| ValueType | height |
| Height of the bounding box. | |
Defines a 2D rectangular bounding box in image coordinates.
| using Zivid::BoundingBox::ValueType = int |
The type of the coordinate values.
summary>Constructor
|
default |
|
inlineconstexpr |
Constructor.
| ZIVID_UTILS_EXPORT bool Zivid::BoundingBox::operator!= | ( | const BoundingBox & | rhs | ) | const |
Check for inequality.
| ZIVID_UTILS_EXPORT bool Zivid::BoundingBox::operator== | ( | const BoundingBox & | rhs | ) | const |
Check for equality.
| ZIVID_UTILS_EXPORT std::string Zivid::BoundingBox::toString | ( | ) | const |
Get string representation.
| ValueType Zivid::BoundingBox::height |
Height of the bounding box.
| ValueType Zivid::BoundingBox::width |
Width of the bounding box.
| ValueType Zivid::BoundingBox::x |
Top-left corner x coordinate.
| ValueType Zivid::BoundingBox::y |
Top-left corner y coordinate.