Skip to main content

Module pixel

Module pixel 

Source
Expand description

Pixel type system for generic image processing.

Provides traits and type aliases for working with different pixel representations (u8, u16, f32) in a uniform way.

Structs§

Rgb
An RGB pixel with three components.
Rgba
An RGBA pixel with four components.

Traits§

FromF32
Conversion trait from f32 to a sample type.
Sample
Trait for scalar sample values used in image processing.

Functions§

rgb16_from_interleaved
Convert a slice of interleaved u16 RGB data to a Vec of Rgb16 pixels.
rgb16_to_interleaved
Convert a slice of Rgb16 pixels to interleaved u16 data.

Type Aliases§

Rgb8
Convenience type aliases for common pixel representations.
Rgb16
RgbF32
Rgba8
Rgba16
RgbaF32