Skip to main content

mne_inverse_operator

Overview

mne_inverse_operator assembles a linear inverse operator from a forward solution and noise covariance matrix. It supports advanced options for source orientation, regularization, and output formats.

This is a C++ port of the original MNE-C tool by Matti Hämäläinen.

Usage

mne_inverse_operator [options]

Options

OptionDescription
--fwd <file>Input forward solution file (required)
--cov <file>Noise covariance matrix file (required)
--out <file>Output inverse operator file (required)
--loose <val>Loose orientation constraint (0=fixed, 1=free)
--depth <val>Depth weighting exponent
--fixedFixed source orientations
--megUse MEG channels only
--eegUse EEG channels only
--bad <ch>Mark channel as bad (repeatable)
--exclude <ch>Exclude channel from computation
--noiserank <val>Set noise covariance rank
--fmri <file>fMRI prior file
--overwriteOverwrite output file if it exists

Description

This tool creates a linear inverse operator for source localization. It supports loose/fixed orientation, depth weighting, and channel selection. The output is a FIFF inverse operator file compatible with MNE-CPP and MNE-Python.