Handling of structural neuroimaging file formats for Rust.
This crate provides access to structural neuroimaging data in Rust by implementing parsers for various file formats. The focus is on surface-based brain morphometry data, as produced from 3D MRI images by tools like FreeSurfer, CAT12 or others.
This is work in progress, come back another day. It will be available on crates.io once a first version is ready.
subject/surf/lh.thickness
): function neuroformats::read_curv
subject/surf/lh.white
): neuroformats::read_surf
subject/label/lh.cortex.label
): neuroformats::read_label
subject/label/lh.aparc.annot
): neuroformats::read_annot
Read vertex-wise cortical thickness computed by FreeSurfer:
rust
use neuroformats::read_curv;
curv = read_curv("subjects_dir/subject1/surf/lh.thickness");
You now have a Vec<f32>
with the cortical thickness values in curv.data
. The order of the values matches the vertex order of the respective brain surface reconstruction (e.g., the white surface mesh of the left brain hemisphere in subjects_dir/subject1/surf/lh.white
).
Continuous integration results: