Crate machine_vision_formats[−][src]
Expand description
Type definitions for working with machine vision cameras.
This crate aims to be a lowest common denominator for working with images from machine vision cameras from companies such as Basler, FLIR, and AVT.
- Can be compiled without standard library support (
no_std
). - Includes strongly-typed pixel formats in the pixel_format module (e.g. pixel_format::RGB8 and pixel_format::Mono8) to ensure correct API use.
Additionally several traits are defined to describe image data:
- ImageData defines the basics, such as image dimensions and the data buffer.
- ImageMutData is implemented for images with mutable data.
- Stride is implemented for images with strided data (i.e. each image row is encoded with exactly the same number of bytes, which may including padding).
This crate is used extensively in Strand Camera.
Re-exports
pub use pixel_format::PixFmt; | |
pub use pixel_format::PixelFormat; |
Modules
pixel_format | Implementations of specific pixel formats. |
Structs
ImageBuffer | A concrete type which containing image data with pixel format |
ImageBufferMutRef | A concrete type with view of mutable image data with pixel format |
ImageBufferRef | A concrete type with view of image data with pixel format |
Traits
AsImageData | Can be converted into |
AsImageStride | Can be converted into |
ImageData | An image. |
ImageMutData | A mutable image. |
ImageStride | An image with a stride. |
OwnedImage | An image which can be moved into |
OwnedImageStride | An image with a stride which can be moved into |
Stride | An image whose data is stored such that successive rows are a stride apart. |