Expand description
Conversion functions to convert between image formats.
This crate contains a number of functions and helper types allow converting to and from types specified in the machine_vision_formats crate, such as the trait machine_vision_formats::ImageData.
Enums§
- Encoder
Options - How to encode to an image buffer
- Error
- Possible errors
Functions§
- convert_
into - Convert input image, a reference to a trait object implementing
HasRowChunksExact<SRC>
, into a mutable reference to an already allocated destination frame implementingHasRowChunksExactMut<DEST>
. - convert_
owned - Convert input, a frame implementing
OwnedImageStride<SRC>
, into an output implementingHasRowChunksExact<DEST>
. - convert_
ref - Convert input image, a reference to a trait object implementing
HasRowChunksExact<SRC>
, into an output implementingHasRowChunksExact<DEST>
. - force_
pixel_ format - Force interpretation of data from frame into another pixel_format.
- force_
pixel_ format_ ref - Force interpretation of data from frame into another pixel_format.
- frame_
to_ encoded_ buffer - Convert any type implementing HasRowChunksExact to a Jpeg or Png buffer using the EncoderOptions specified.
- frame_
to_ image - Convert any type implementing HasRowChunksExact to an image::DynamicImage.
- image_
to_ rgb8 - Convert an input image::DynamicImage to an RGB8 image.