class
#include <FAST/Data/BoundingBox.hpp>
BoundingBox A 2D bounding box data object.
Contents
Base classes
- class SpatialDataObject
- Abstract base class for all spatial data objects.
Constructors, destructors, conversion operators
- BoundingBox() protected
Public functions
- auto create(Vector2f position, Vector2f size, uchar label, float score) -> std::shared_ptr<BoundingBox>
- auto getLabel() -> uchar
- void setPosition(Vector2f position)
- auto getPosition() -> Vector2f
- void setSize(Vector2f size)
- auto getSize() -> Vector2f
- void setScore(float score)
- auto getScore() -> float
-
void free(ExecutionDevice::
pointer device) override - void freeAll() override
-
auto intersectionOverUnion(BoundingBox::
pointer bbox2) const -> float
Protected variables
- bool m_initialized
- uchar m_label
- Vector2f m_position
- Vector2f m_size
- float m_score
- std::mutex m_mutex
Function documentation
void fast:: BoundingBox:: setPosition(Vector2f position)
Set position in millimeters
void fast:: BoundingBox:: setSize(Vector2f size)
Set size in millimeters