Expand description
OpenKSpace-IO: Readers for raw MRI formats.
Supported today:
- ISMRMRD (.h5) – vendor-agnostic HDF5 container used by mridata.org
- FastMRI (.h5) – NYU/Facebook multicoil knee/brain dataset format
Planned:
- Siemens TWIX (.dat) – MDH / Sync-link parser
- GE P-file (.7) – Pfile header + data
- Philips raw (.raw) – paired with .lab / .sin
§Quick start
use openkspace_io::{is_fastmri, FastmriFile};
use openkspace_io::ismrmrd::IsmrmrdFile;
let path = std::path::Path::new("scan.h5");
if is_fastmri(path) {
let f = FastmriFile::open(path).unwrap();
let kspace = f.read_kspace().unwrap(); // [coils, slices, ky, kx]
} else {
let f = IsmrmrdFile::open(path).unwrap();
// kspace built slice-by-slice via f.read_acquisitions()
}Re-exports§
pub use error::IoError;pub use error::IoResult;pub use fastmri::FastmriFile;pub use fastmri::FastmriMeta;
Modules§
- error
- fastmri
- FastMRI HDF5 reader module.
- ismrmrd
- ISMRMRD (International Society for Magnetic Resonance in Medicine Raw Data) HDF5 reader.
Functions§
- is_
fastmri - Lightweight format probe: returns
trueif the file has a/kspacedataset (FastMRI layout),falseotherwise.