MriCorFifIO
Namespace: MRILIB · Library: MRI Library
#include <mri/mri_cor_fif_io.h>
class MRILIB::MriCorFifIO
Stateless serialiser that turns an MriVolData into a FIFF MRI set (COR.fif).
Writes MRI slice data whether originally loaded from a FreeSurfer COR tree, an MGH/MGZ volume, or a NIfTI file into the FIFF block hierarchy (FIFFB_MRI / FIFFB_MRI_SET / FIFFB_MRI_SLICE) understood by every downstream MNE C / MNE-Python step that needs an MRI volume in source-space coordinates. The class exposes only static methods so callers can use it without owning any state; the input MriVolData is consumed verbatim.
Ported from save_slices() / write_slice() in MNE C write_mri_set.c by Matti Hamalainen.
Static Methods
write(fileName, slices, additionalTrans)
Writes COR.fif file from slice data.
Parameters:
-
fileName : const QString & Output FIFF file path.
-
slices : const QVector< MriSlice > & Vector of
MriSlicestructures to write. -
additionalTrans : const QVector< FiffCoordTrans > & Additional coordinate transforms (Talairach etc.).
Returns:
- bool — True on success, false on error.
Authors of this file
- Christoph Dinh <christoph.dinh@mne-cpp.org>