24 Color(uint8_t
r, uint8_t
g, uint8_t
b, uint8_t
a = 255u)
25 : b(b), g(g), r(r),
a(
a) {}
30 return (
r == rhs.
r) && (
g == rhs.
g) && (
b == rhs.
b);
34 return !(*
this == rhs);
41 return {
r/255.f,
g/255.f,
b/255.f,
a/255.f};
52 static_assert(
sizeof(
Color) ==
sizeof(uint32_t),
"Invalid color size!");
66 return (x == rhs.
x) && (y == rhs.
y);
70 return !(*
this == rhs);
bool operator==(const OpticalFlowPixel &rhs) const
sensor::data::Color Color
OpticalFlowPixel(float x, float y)
bool operator!=(const Color &rhs) const
This file contains definitions of common data structures used in traffic manager. ...
bool operator!=(const OpticalFlowPixel &rhs) const
Color & operator=(const Color &)=default
Color(uint8_t r, uint8_t g, uint8_t b, uint8_t a=255u)
bool operator==(const Color &rhs) const
Optical flow pixel format. 2 channel float data.
MSGPACK_DEFINE_ARRAY(r, g, b, a)