Expand description
Rust implementation of IO routines to read and write images produced by various 2D X-ray detectors.
§Supported formats
- Bruker
- Dectris Eiger HDF5 with bitshuffle plugin
- Dectris MiniCBF
- Agilent (Oxford) Crysalis Esperanto compressed bitfield
- ESRF data format EDF
- Mar345
- Tif (including int32 tifs produced by Dectis Pilatus)
Usage example:
use std::{io, fmt};
use cryiorust::frame::{self, Frame};
use std::path::Path;
fn test_cbf<P: AsRef<Path> + fmt::Debug>(path: P) -> io::Result<Box<dyn Frame>> {
let testfile = path;
let cbf: Box<dyn Frame> = frame::open(testfile)?;
println!("Frame size: {}x{}", cbf.dim1(), cbf.dim2());
println!("Frame sum: {}", cbf.sum());
Ok(cbf)
}
Modules§
- bruker
- Pure Rust implementation of the Bruker detector format reader.
- cbf
- Dectris Pilatus MiniCBF frame reader and writer in pure Rust.
- edf
- EDF (ESRF Data format) reader and writer.
- eiger
- Dectris Eiger frame reader.
- esperanto
- Agilent (Oxford) Esperanto format reader and writer.
- frame
- Array structure and Frame trait which encapsulate working with arrays for different frame formats.
- mar
- Mar345 format reader.
- tif
- Tif frame reader.