45#ifndef UFO_VISION_COLOR_SPACE_HPP
46#define UFO_VISION_COLOR_SPACE_HPP
80 using namespace std::literals;
82 case ColorSpace::NATIVE:
return "NATIVE"sv;
83 case ColorSpace::Rgb:
return "Rgb"sv;
84 case ColorSpace::Oklab:
return "OKLab"sv;
85 case ColorSpace::Oklab2:
return "OKLab2"sv;
86 case ColorSpace::Oklch:
return "OKLch"sv;
94inline std::ostream& operator<<(std::ostream& out,
ColorSpace cs)
111struct std::formatter<
ufo::ColorSpace> : std::formatter<std::string_view> {
114 return std::formatter<std::string_view>::format(
ufo::toString(cs), ctx);
ColorSpace
Selects the working color space for color operations.
All vision-related classes and functions.
constexpr std::string_view toString(ScalarType type) noexcept
Returns a human-readable string for a ScalarType value.
Gamma-encoded sRGB color.