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.

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 F.

ImageBufferMutRef

A concrete type with view of mutable image data with pixel format F.

ImageBufferRef

A concrete type with view of image data with pixel format F.

Traits

AsImageData

Can be converted into ImageData.

AsImageStride

Can be converted into ImageStride.

ImageData

An image.

ImageMutData

A mutable image.

ImageStride

An image with a stride.

OwnedImage

An image which can be moved into Vec<u8>.

OwnedImageStride

An image with a stride which can be moved into Vec<u8>.

Stride

An image whose data is stored such that successive rows are a stride apart.