UFO 1.0.0
An Efficient Probabilistic 3D Mapping Framework That Embraces the Unknown
Loading...
Searching...
No Matches
ufo::Semantic Struct Reference

Represents a semantic annotation as a pair of class label and confidence score. More...

#include <lib/core/include/ufo/core/semantic.hpp>

Public Attributes

Confidence confidence {}
 The associated confidence or weight score.
 
Label label {}
 The discrete semantic class identifier.
 

Friends

constexpr auto operator<=> (Semantic lhs, Semantic rhs) noexcept=default
 Three-way comparison (lexicographic on label then value).
 
constexpr bool operator== (Semantic lhs, Semantic rhs) noexcept=default
 Equality comparison.
 

Detailed Description

Represents a semantic annotation as a pair of class label and confidence score.

Semantic combines a discrete category identifier (Label) with a continuous confidence measure (Confidence), making it suitable for probabilistic semantic segmentation of point clouds and map nodes. It is a lightweight, trivially-copyable aggregate, fully ordered via <=>, and supports std::ostream streaming (as "label: confidence") and std::format.

Intended for use as a per-point or per-node attribute in semantic mapping, where both the class and its associated certainty are required.

See also
Label, Confidence

Definition at line 75 of file semantic.hpp.

Friends And Related Symbol Documentation

◆ operator<=>

constexpr auto operator<=> ( Semantic  lhs,
Semantic  rhs 
)
friend

Three-way comparison (lexicographic on label then value).

Parameters
[in]lhsLeft operand.
[in]rhsRight operand.
Returns
Comparison result.

◆ operator==

constexpr bool operator== ( Semantic  lhs,
Semantic  rhs 
)
friend

Equality comparison.

Parameters
[in]lhsLeft operand.
[in]rhsRight operand.
Returns
True if both label and confidence are equal.

Member Data Documentation

◆ confidence

Confidence ufo::Semantic::confidence {}

The associated confidence or weight score.

Definition at line 84 of file semantic.hpp.

◆ label

Label ufo::Semantic::label {}

The discrete semantic class identifier.

Definition at line 79 of file semantic.hpp.


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