Stateless reader for the FreeSurfer COR-NNN directory layout. More...
#include <mri_cor_io.h>
Static Public Member Functions | |
| static bool | read (const QString &dir, QVector< MriSlice > &slices, bool verbose=false) |
Stateless reader for the FreeSurfer COR-NNN directory layout.
Walks a mri/T1 (or mri/orig, mri/brain, …) directory, loads the 256 COR-001 … COR-256 flat 256×256 unsigned-char coronal slice files, and assembles them into an MriVolData with the per-slice coordinate transform (slice→surface RAS) the rest of MRILIB expects. The class exposes only static methods — there is no per-instance state, the caller supplies the directory path and an output volume.
Ported from make_cor_set() in MNE C mne_make_cor_set by Matti Hamalainen.
Definition at line 73 of file mri_cor_io.h.
|
static |
Reads COR slice files from a directory.
Expects files named COR-001 through COR-256, each containing 256×256 unsigned char pixel data.
| [in] | dir | Path to the directory containing COR-NNN files. |
| [out] | slices | Vector of MriSlice structures to populate. |
| [in] | verbose | If true, print progress information. |
Definition at line 60 of file mri_cor_io.cpp.