ReUseX  0.0.1
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
ReUseX::vision::osd::LabelLayoutSolver::Candidate Struct Reference

Internal representation of a single placement candidate for a label. More...

#include <labelLayoutSolver.hpp>

Collaboration diagram for ReUseX::vision::osd::LabelLayoutSolver::Candidate:

Public Attributes

LayoutBox box
 Candidate label box on the canvas.
float geometricCost
 Cost based on anchor preference and font scale.
float staticCost
 Cost from overlap with object boxes (computed once).
float area
 Box area (cached for performance).
float invArea
 Reciprocal of area (cached for performance).
int16_t fontSize
 Font size for this candidate.
int16_t textAscent
 Text ascent (for putText offset calculation).

Detailed Description

Internal representation of a single placement candidate for a label.

Definition at line 218 of file labelLayoutSolver.hpp.

Member Data Documentation

◆ area

float ReUseX::vision::osd::LabelLayoutSolver::Candidate::area

Box area (cached for performance).

Definition at line 223 of file labelLayoutSolver.hpp.

Referenced by ReUseX::vision::osd::LabelLayoutSolver::add().

◆ box

LayoutBox ReUseX::vision::osd::LabelLayoutSolver::Candidate::box

◆ fontSize

int16_t ReUseX::vision::osd::LabelLayoutSolver::Candidate::fontSize

Font size for this candidate.

Definition at line 225 of file labelLayoutSolver.hpp.

Referenced by ReUseX::vision::osd::LabelLayoutSolver::add().

◆ geometricCost

float ReUseX::vision::osd::LabelLayoutSolver::Candidate::geometricCost

Cost based on anchor preference and font scale.

Definition at line 220 of file labelLayoutSolver.hpp.

Referenced by ReUseX::vision::osd::LabelLayoutSolver::add(), and ReUseX::vision::osd::LabelLayoutSolver::solve().

◆ invArea

float ReUseX::vision::osd::LabelLayoutSolver::Candidate::invArea

Reciprocal of area (cached for performance).

Definition at line 224 of file labelLayoutSolver.hpp.

Referenced by ReUseX::vision::osd::LabelLayoutSolver::add(), and ReUseX::vision::osd::LabelLayoutSolver::solve().

◆ staticCost

float ReUseX::vision::osd::LabelLayoutSolver::Candidate::staticCost

Cost from overlap with object boxes (computed once).

Definition at line 221 of file labelLayoutSolver.hpp.

Referenced by ReUseX::vision::osd::LabelLayoutSolver::add(), and ReUseX::vision::osd::LabelLayoutSolver::solve().

◆ textAscent

int16_t ReUseX::vision::osd::LabelLayoutSolver::Candidate::textAscent

Text ascent (for putText offset calculation).

Definition at line 226 of file labelLayoutSolver.hpp.

Referenced by ReUseX::vision::osd::LabelLayoutSolver::add().


The documentation for this struct was generated from the following file: