Skip to main content

Crate spatialrust_image

Crate spatialrust_image 

Source
Expand description

Typed, CPU-resident image buffers and zero-copy strided views.

Channel count is part of the type. Packed interleaved ownership is the default; planar ownership and explicitly-strided views are also available. Device-backed images belong in dedicated GPU crates so transfers remain explicit.

Structs§

Image
An owning, densely packed, interleaved image.
ImageMetadata
Lightweight semantic metadata carried by images and borrowed views.
ImageRegion
A checked rectangular image region.
ImageView
A read-only, zero-copy image view with an explicit row stride.
ImageViewMut
A mutable, zero-copy interleaved image view with an explicit row stride.
PlanarImage
An owning, densely packed planar image.
PlanarImageView
A read-only, zero-copy planar image view with explicit strides.

Enums§

AlphaMode
Alpha-channel interpretation.
ColorRange
Numeric range convention associated with image channels.
ColorSpace
Semantic interpretation of image channels.
ImageError
Errors raised while constructing or indexing images.
ImageLayout
Physical channel arrangement in CPU storage.

Type Aliases§

GrayImage
A one-channel image.
RgbImage
A three-channel RGB image.