nd2-rs 0.1.1

Pure Rust library for reading Nikon ND2 microscopy files
Documentation

nd2-rs

Pure Rust library for reading Nikon ND2 microscopy files (v2.0, v2.1, v3.0).

Installation

[dependencies]

nd2-rs = "0.1"

Usage

use nd2_rs::{Nd2File, Result};

fn main() -> Result<()> {
    let mut nd2 = Nd2File::open("image.nd2")?;
    let sizes = nd2.sizes()?;
    let pixels = nd2.read_frame_2d(0, 0, 0, 0)?;
    Ok(())
}

CLI

nd2-rs info image.nd2

Prints version, attributes, text_info, and experiment as JSON.

Docs

References

Inspired by the Python nd2 library.

License

MIT OR Apache-2.0