v2.0.0
Loading...
Searching...
No Matches
mri_cor_io.cpp File Reference

Implementation of MRILIB::MriCorIO: per-file COR-NNN reader with coronal-orientation slice transform synthesis. More...

#include "mri_cor_io.h"
#include <fiff/fiff_coord_trans.h>
#include <fiff/fiff_constants.h>
#include <fiff/fiff_file.h>
#include <QDir>
#include <QFile>
#include <QDebug>
#include <Eigen/Core>
Include dependency graph for mri_cor_io.cpp:

Go to the source code of this file.

Detailed Description

Implementation of MRILIB::MriCorIO: per-file COR-NNN reader with coronal-orientation slice transform synthesis.

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors

Author
Christoph Dinh chris.nosp@m.toph.nosp@m..dinh.nosp@m.@mne.nosp@m.-cpp..nosp@m.org
Since
2.0.0
Date
February 2026

Walks the 256 COR-001 \u2026 COR-256 files in the supplied directory, mmap-friendly reads the 65\u202f536-byte flat slice buffer of each one into a MriSlice with FIFFV_MRI_PIXEL_BYTE encoding, and stamps every slice with its coronal-orientation slice\u2192MRI transform (the (128, -128, 128) mm offset plus the x\u2192 -x, y\u2192z , z\u2192y axis permutation). Missing or short-read files are reported as warnings; partial sets are rejected so downstream code can rely on a complete 256-slice coronal stack. Ported from make_cor_set() in MNE C mne_make_cor_set by Matti Hamalainen.

Definition in file mri_cor_io.cpp.