Enum realsense_rust::frame::PixelKind [−][src]
pub enum PixelKind<'a> {}Show 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
32-bit y0, u, y1, v
data for every two pixels.
Similar to YUV422 but packed in a different order - see this link.
Similar to the standard YUYV pixel format, but packed in a different order.
8-bit blue, green, and red channels – suitable for OpenCV.
8-bit blue, green, and red channels + constant alpha channel equal to FF.
8-bit red, green and blue channels.
8-bit red, green and blue channels + constant alpha channel equal to FF.
8-bit raw image.
Show fields
Fields of Raw8
val: &'a u8
8-bit per-pixel grayscale image.
Show fields
Fields of Y8
y: &'a u8
16-bit per-pixel grayscale image.
Show fields
Fields of Y16
y: &'a u16
16-bit linear depth values. The depth is meters is equal to depth scale * pixel value.
Show fields
Fields of Z16
depth: &'a u16
32-bit float-point depth distance value.
Show fields
Fields of Distance
distance: &'a f32
32-bit float-point disparity values. Depth->Disparity conversion : Disparity = Baseline*FocalLength/Depth.
Show fields
Fields of Disparity32
disparity: &'a f32
32-bit floating point 3D coordinates.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for PixelKind<'a>
impl<'a> UnwindSafe for PixelKind<'a>