neuroformats-rs

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.

Installation

This is work in progress, come back another day. It will be available on crates.io once a first version is ready.

Features

Usage example

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).

Development

Unit tests and continuous integration

Continuous integration results:

Build Status Travis CI under Linux

codecov