czi-rs
Pure Rust reader for Zeiss CZI microscopy files.
czi-rs is a small, dependency-light library for inspecting CZI container
structure, reading parsed metadata, and decoding layer-0 image planes into raw
pixel buffers.
Install
[]
= "0.1.0"
What it exposes
- Open a
.czifile once and reuse the handle. - Inspect file header data, subblock directory entries, and attachments.
- Read parsed metadata from the embedded XML document.
- Enumerate frame indices and decode planes into a
Bitmap.
Example
use ;
Notes
- Pixel data is returned as a raw interleaved byte buffer in
Bitmap::data. - Helpers such as
Bitmap::to_u16_vec()andBitmap::to_f32_vec()are available for compatible pixel formats. - Unsupported compression modes or pixel formats are reported as structured
CziErrorvalues.
License
Licensed under either of:
- Apache License, Version 2.0
- MIT license
at your option.