Expand description
Images from machine vision cameras used in Strand Camera.
Building on the machine_vision_formats
crate which provides compile-time
pixel formats, this crate provides types for images whose pixel format is
determined at runtime. This allows for flexibility in handling images data
whose pixel format is known only dynamically, such as when reading an image
from disk.
There are two types here:
DynamicFrame
: A borrowed view of an image with a dynamic pixel format.DynamicFrameOwned
: An owned version ofDynamicFrame
that contains its own buffer.
When compiled with the convert-image
feature, this crate also provides
conversion methods to convert the dynamic frame into a static pixel format
using the convert_image
crate.
Macros§
- match_
all_ dynamic_ fmts - Macro to match all dynamic pixel formats and execute a block of code with a typed image reference.
Structs§
- Dynamic
Frame - An image whose pixel format is determined at runtime.
- Dynamic
Frame Owned - An owned version of
DynamicFrame
that contains its own buffer.