pub enum PixelKind<'a> {
Show 13 variants
Yuyv {
y: &'a u8,
u: &'a u8,
v: &'a u8,
},
Uyvy {
y: &'a u8,
u: &'a u8,
v: &'a u8,
},
Bgr8 {
b: &'a u8,
g: &'a u8,
r: &'a u8,
},
Bgra8 {
b: &'a u8,
g: &'a u8,
r: &'a u8,
a: &'a u8,
},
Rgb8 {
r: &'a u8,
g: &'a u8,
b: &'a u8,
},
Rgba8 {
r: &'a u8,
g: &'a u8,
b: &'a u8,
a: &'a u8,
},
Raw8 {
val: &'a u8,
},
Y8 {
y: &'a u8,
},
Y16 {
y: &'a u16,
},
Z16 {
depth: &'a u16,
},
Distance {
distance: &'a f32,
},
Disparity32 {
disparity: &'a f32,
},
Xyz32f {
x: &'a f32,
y: &'a f32,
z: &'a f32,
},
}
Expand description
Type for representing the various pixel formats.
Variants§
Yuyv
32-bit y0, u, y1, v
data for every two pixels.
Similar to YUV422 but packed in a different order - see this link.
Fields
Uyvy
Similar to the standard YUYV pixel format, but packed in a different order.
Fields
Bgr8
8-bit blue, green, and red channels – suitable for OpenCV.
Fields
Bgra8
8-bit blue, green, and red channels + constant alpha channel equal to FF.
Fields
Rgb8
8-bit red, green and blue channels.
Fields
Rgba8
8-bit red, green and blue channels + constant alpha channel equal to FF.
Fields
Raw8
8-bit raw image.
Y8
8-bit per-pixel grayscale image.
Y16
16-bit per-pixel grayscale image.
Z16
16-bit linear depth values. The depth is meters is equal to depth scale * pixel value.
Distance
32-bit float-point depth distance value.
Disparity32
32-bit float-point disparity values. Depth->Disparity conversion : Disparity = Baseline*FocalLength/Depth.
Xyz32f
32-bit floating point 3D coordinates.