41#ifndef UFO_CORE_SEMANTIC_HPP
42#define UFO_CORE_SEMANTIC_HPP
45#include <ufo/core/confidence.hpp>
46#include <ufo/core/label.hpp>
119inline std::ostream& operator<<(std::ostream& out,
Semantic s)
126struct std::formatter<
ufo::Semantic> {
127 constexpr auto parse(std::format_parse_context& ctx)
const {
return ctx.begin(); }
All vision-related classes and functions.
Represents a confidence score as a single float value.
Represents a semantic class label as a single unsigned integer value.
Represents a semantic annotation as a pair of class label and confidence score.
friend constexpr auto operator<=>(Semantic lhs, Semantic rhs) noexcept=default
Three-way comparison (lexicographic on label then value).
friend constexpr bool operator==(Semantic lhs, Semantic rhs) noexcept=default
Equality comparison.
Confidence confidence
The associated confidence or weight score.
Label label
The discrete semantic class identifier.