fast::BoundingBoxSetAccess class

Public types

using pointer = std::unique_ptr<BoundingBoxSetAccess>

Constructors, destructors, conversion operators

BoundingBoxSetAccess(std::vector<float>* coordinates, std::vector<uint>* lines, std::vector<uchar>* labels, std::vector<float>* scores, float* m_minimumSize, std::shared_ptr<BoundingBoxSet> bbset)
~BoundingBoxSetAccess()
BoundingBoxSetAccess(const BoundingBoxSetAccess&) deleted

Public functions

void addBoundingBox(std::shared_ptr<BoundingBox> box)
void addBoundingBox(Vector2f position, Vector2f size, uchar label, float score)
auto getCoordinates() const -> std::vector<float>
auto getLines() const -> std::vector<uint>
auto getLabels() const -> std::vector<uchar>
auto getScores() const -> std::vector<float>
void addBoundingBoxes(std::vector<float> coordinates, std::vector<uint> lines, std::vector<uchar> labels, std::vector<float> scores, float minimumSize)
void release()

Protected variables

std::vector<float>* m_coordinates
std::vector<uint>* m_lines
std::vector<uchar>* m_labels
std::vector<float>* m_scores
float* m_minimumSize
std::shared_ptr<BoundingBoxSet> m_bbset
bool m_released