41#ifndef UFO_CORE_WEIGHT_HPP
42#define UFO_CORE_WEIGHT_HPP
95 Weight rhs)
noexcept =
default;
105 Weight rhs)
noexcept =
default;
120inline std::ostream& operator<<(std::ostream& out,
Weight v) {
return out << v.
weight; }
124struct std::formatter<
ufo::Weight> : std::formatter<ufo::Weight::value_type> {
125 auto format(
ufo::Weight v, std::format_context& ctx)
const
127 return std::formatter<ufo::Weight::value_type>::format(v.
weight, ctx);
All vision-related classes and functions.
Represents a generic scalar weight as a single float value.
float value_type
Underlying scalar type.
value_type weight
The raw scalar weight (e.g., a confidence in [0, 1]).
friend constexpr bool operator==(Weight lhs, Weight rhs) noexcept=default
Equality comparison.
friend constexpr auto operator<=>(Weight lhs, Weight rhs) noexcept=default
Three-way comparison (total order on the underlying float).