pub type GrayImage = ImageBuffer<Luma<u8>, Vec<u8>>;
Expand description
Sendable grayscale image buffer
Aliased Type§
struct GrayImage {
width: u32,
height: u32,
_phantom: PhantomData<Luma<u8>>,
data: Vec<u8>,
}
Fields§
§width: u32
§height: u32
§_phantom: PhantomData<Luma<u8>>
§data: Vec<u8>
Implementations§
Trait Implementations§
source§impl From<DynamicImage> for GrayImage
impl From<DynamicImage> for GrayImage
source§fn from(value: DynamicImage) -> Self
fn from(value: DynamicImage) -> Self
Converts to this type from the input type.