Skip to content

ChengranAA/BareMRI

Repository files navigation

BareMRI

BareMRI: a tiny C99 NIfTI viewer core for fast inspection, teaching, and hacking. Not clinically validated. Not a full neuroimaging suite.

Zero dependencies beyond the windowing backend you choose. The SDL2 shared-library build weighs ~100 KB; the MiniFB static build ~300 KB. Everything else — NIfTI I/O, software rasterizer, plot engine — is single-header C included in the tree.

Tri-view display (axial / sagittal / coronal), 4D timeseries with scrub + chart, contrast level/window sliders, overlay + segmentation support, zoom to crosshair, 5 colormaps, BMP screenshot export.

InstaCorr (experimental)

On-the-fly instantaneous correlation mapping for functional data. Not numerically validated — correlation values may differ from AFNI. Compile with make EXPERIMENT=instacorr, then press I, click a seed voxel, and drag to explore.

demo

make                  # MiniFB (macOS Metal)
make BACKEND=sdl2     # SDL2 (Linux/Windows/macOS)
baremri [--out <dir>] [-s|--seg seg.nii] [-o|--overlay ovl.nii] <anatomy.nii>

For customization see README_DEV.md.

About

A tiny zero-dependency C99 NIfTI-to-pixels engine and viewer. No Qt. No Python. No OpenGL required. Designed for interactive viewing, headless QC snapshots, and hackable neuroimaging tools.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors