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

Tunable parameters controlling the label placement algorithm. More...

#include <labelLayoutSolver.hpp>

Public Attributes

int gridSize = 100
 Spatial-index cell size in pixels.
int spatialIndexThreshold
 Minimum number of items before a grid index is used.
int maxIterations
 Maximum refinement iterations (higher = better quality).
int paddingX = 2
 Horizontal padding around each label in pixels.
int paddingY = 2
 Vertical padding around each label in pixels.
float costPos1_Top = 0.0f
 Base geometric cost for anchor position 1 (top of object — preferred).
float costPos2_Right = 10.0f
 Base geometric cost for anchor position 2 (right of object).
float costPos3_Bottom = 20.0f
 Base geometric cost for anchor position 3 (bottom of object).
float costPos4_Left = 30.0f
 Base geometric cost for anchor position 4 (left of object).
float costSlidingPenalty = 100.0f
 Extra cost for a sliding (non-anchor) candidate. Must be > costPos4_Left.
float costScaleTier = 10000.0f
 Cost multiplier per font-size scale tier (keep large to prefer position changes over size reduction).
float costOccludeObj = 100000.0f
 Penalty per unit overlap with an object bounding box.
float costOverlapBase = 100000.0f
 Base penalty per unit overlap with another label.

Detailed Description

Tunable parameters controlling the label placement algorithm.

Definition at line 69 of file labelLayoutSolver.hpp.

Member Data Documentation

◆ costOccludeObj

float ReUseX::vision::osd::LayoutConfig::costOccludeObj = 100000.0f

Penalty per unit overlap with an object bounding box.

Definition at line 93 of file labelLayoutSolver.hpp.

◆ costOverlapBase

float ReUseX::vision::osd::LayoutConfig::costOverlapBase = 100000.0f

Base penalty per unit overlap with another label.

Definition at line 95 of file labelLayoutSolver.hpp.

◆ costPos1_Top

float ReUseX::vision::osd::LayoutConfig::costPos1_Top = 0.0f

Base geometric cost for anchor position 1 (top of object — preferred).

Definition at line 79 of file labelLayoutSolver.hpp.

◆ costPos2_Right

float ReUseX::vision::osd::LayoutConfig::costPos2_Right = 10.0f

Base geometric cost for anchor position 2 (right of object).

Definition at line 81 of file labelLayoutSolver.hpp.

◆ costPos3_Bottom

float ReUseX::vision::osd::LayoutConfig::costPos3_Bottom = 20.0f

Base geometric cost for anchor position 3 (bottom of object).

Definition at line 83 of file labelLayoutSolver.hpp.

◆ costPos4_Left

float ReUseX::vision::osd::LayoutConfig::costPos4_Left = 30.0f

Base geometric cost for anchor position 4 (left of object).

Definition at line 85 of file labelLayoutSolver.hpp.

◆ costScaleTier

float ReUseX::vision::osd::LayoutConfig::costScaleTier = 10000.0f

Cost multiplier per font-size scale tier (keep large to prefer position changes over size reduction).

Definition at line 91 of file labelLayoutSolver.hpp.

◆ costSlidingPenalty

float ReUseX::vision::osd::LayoutConfig::costSlidingPenalty = 100.0f

Extra cost for a sliding (non-anchor) candidate. Must be > costPos4_Left.

Definition at line 88 of file labelLayoutSolver.hpp.

◆ gridSize

int ReUseX::vision::osd::LayoutConfig::gridSize = 100

Spatial-index cell size in pixels.

Definition at line 70 of file labelLayoutSolver.hpp.

◆ maxIterations

int ReUseX::vision::osd::LayoutConfig::maxIterations
Initial value:
=
30

Maximum refinement iterations (higher = better quality).

Definition at line 73 of file labelLayoutSolver.hpp.

◆ paddingX

int ReUseX::vision::osd::LayoutConfig::paddingX = 2

Horizontal padding around each label in pixels.

Definition at line 75 of file labelLayoutSolver.hpp.

◆ paddingY

int ReUseX::vision::osd::LayoutConfig::paddingY = 2

Vertical padding around each label in pixels.

Definition at line 76 of file labelLayoutSolver.hpp.

◆ spatialIndexThreshold

int ReUseX::vision::osd::LayoutConfig::spatialIndexThreshold
Initial value:
=
20

Minimum number of items before a grid index is used.

Definition at line 71 of file labelLayoutSolver.hpp.


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