MNE-CPP
0.1.9
A Framework for Electrophysiology
|
The MNE class provides wrapper functions to stay consistent with mne matlab toolbox. More...
#include <mne.h>
Public Member Functions | |
virtual | ~MNE () |
Static Public Member Functions | |
static Eigen::VectorXd * | combine_xyz (const Eigen::VectorXd &vec) |
static qint32 | find_source_space_hemi (MNEHemisphere &p_Hemisphere) |
static qint32 | get_current_comp (FIFFLIB::FiffInfo *info) |
static Eigen::SparseMatrix< double > * | make_block_diag (const Eigen::MatrixXd &A, qint32 n) |
static bool | make_compensator (const FIFFLIB::FiffInfo &info, FIFFLIB::fiff_int_t from, FIFFLIB::fiff_int_t to, FIFFLIB::FiffCtfComp &ctf_comp, bool exclude_comp_chs=false) |
static FIFFLIB::fiff_int_t | make_projector (const QList< FIFFLIB::FiffProj > &projs, const QStringList &ch_names, Eigen::MatrixXd &proj, const QStringList &bads=FIFFLIB::defaultQStringList, Eigen::MatrixXd &U=FIFFLIB::defaultMatrixXd) |
static qint32 | make_projector (FIFFLIB::FiffInfo &info, Eigen::MatrixXd &proj) |
static bool | patch_info (MNEHemisphere &p_Hemisphere) |
static MNEInverseOperator | prepare_inverse_operator (MNEInverseOperator &orig, qint32 nave, float lambda2, bool dSPM, bool sLORETA=false) |
static bool | read_events (QString t_sEventName, QString t_fileRawName, Eigen::MatrixXi &events) |
static bool | read_events_from_fif (QIODevice &p_IODevice, Eigen::MatrixXi &eventlist) |
static bool | read_events_from_ascii (QIODevice &p_IODevice, Eigen::MatrixXi &eventlist) |
static void | setup_compensators (FIFFLIB::FiffRawData &raw, FIFFLIB::fiff_int_t dest_comp, bool keep_comp) |
static bool | read_cov (FIFFLIB::FiffStream::SPtr &p_pStream, const FIFFLIB::FiffDirNode::SPtr &p_Node, FIFFLIB::fiff_int_t cov_kind, FIFFLIB::FiffCov &p_covData) |
static bool | read_inverse_operator (QIODevice &p_pIODevice, MNEInverseOperator &inv) |
static bool | read_forward_solution (QIODevice &p_IODevice, MNEForwardSolution &fwd, bool force_fixed=false, bool surf_ori=false, const QStringList &include=FIFFLIB::defaultQStringList, const QStringList &exclude=FIFFLIB::defaultQStringList) |
static bool | read_source_spaces (FIFFLIB::FiffStream::SPtr &p_pStream, bool add_geom, MNESourceSpace &p_SourceSpace) |
static bool | read_bem_surface (FIFFLIB::FiffStream::SPtr &p_pStream, bool add_geom, FIFFLIB::FiffDirNode::SPtr &p_Tree, QList< MNESurface::SPtr > &p_Surfaces) |
static QList< FIFFLIB::FiffChInfo > | set_current_comp (QList< FIFFLIB::FiffChInfo > &chs, FIFFLIB::fiff_int_t value) |
static bool | transform_source_space_to (MNESourceSpace &p_pMNESourceSpace, FIFFLIB::fiff_int_t dest, FIFFLIB::FiffCoordTrans &trans) |
static void | transpose_named_matrix (FIFFLIB::FiffNamedMatrix &mat) |
The MNE class provides wrapper functions to stay consistent with mne matlab toolbox.
DECLARE MNE WRAPPER CLASS
|
inlinestatic |
|
inlinestatic |
mne_block_diag - decoding part
Wrapper for the MNEForwardSolution::extract_block_diag static function mne_find_source_space_hemi
Wrapper for the MNESourceSpace::find_source_space_hemi static function
Returns the hemisphere id (FIFFV_MNE_SURF_LEFT_HEMI or FIFFV_MNE_SURF_RIGHT_HEMI) for a source space.
[in] | p_Hemisphere | The hemisphere to investigate. |
|
inlinestatic |
|
inlinestatic |
mne_block_diag - encoding part
Wrapper for the MNEForwardSolution::make_block_diag static function
Make a sparse block diagonal matrix
Returns a sparse block diagonal, diagonalized from the elements in "A". "A" is ma x na, comprising bdn=(na/"n") blocks of submatrices. Each submatrix is ma x "n", and these submatrices are placed down the diagonal of the matrix.
[in,out] | A | Matrix which should be diagonlized. |
[in,out] | n | Columns of the submatrices. |
|
inlinestatic |
mne_make_compensator
Wrapper for the FiffInfo make_compensator member function
Create a compensation matrix to bring the data from one compensation state to another
[in] | info | measurement info as returned by the fif reading routines. |
[in] | from | compensation in the input data. |
[in] | to | desired compensation in the output. |
[out] | ctf_comp | Compensation Matrix. |
[in] | exclude_comp_chs | exclude compensation channels from the output (optional). |
|
inlinestatic |
make_projector
Wrapper for the FiffInfo::make_projector static function There exists also a member function which should be preferred: make_projector(MatrixXd& proj, Eigen::MatrixXd& U = defaultUMatrix)
Make an SSP operator
[in] | projs | A set of projection vectors. |
[in] | ch_names | A cell array of channel names. |
[out] | proj | The projection operator to apply to the data. |
[in] | bads | Bad channels to exclude. |
[out] | U | The orthogonal basis of the projection vectors (optional). |
|
inlinestatic |
mne_make_projector_info
Wrapper for the FiffInfo make_projector_info(MatrixXd& proj) member function
Make a SSP operator using the meas info
[in] | info | Fiff measurement info. |
[out] | proj | The projection operator to apply to the data. |
|
inlinestatic |
mne_patch_info
Wrapper for the MNESourceSpace::patch_info static function
[in,out] | p_Hemisphere | The source space. |
|
inlinestatic |
mne_prepare_inverse_operator
Wrapper for the MNEInverseOperator prepare_inverse_operator member function
Prepare for actually computing the inverse
[in] | orig | The inverse operator structure read from a file. |
[in] | nave | Number of averages (scales the noise covariance). |
[in] | lambda2 | The regularization factor. |
[in] | dSPM | Compute the noise-normalization factors for dSPM?. |
[in] | sLORETA | Compute the noise-normalization factors for sLORETA?. |
|
inlinestatic |
mne_read_bem_surface
Wrapper for the MNESurface::read static function
Reads a BEM surface from a fif stream
[in] | p_pStream | The open fiff file. |
[in] | add_geom | Add geometry information to the source spaces. |
[in] | p_Tree | Search for the source spaces here. |
[in,out] | p_Surfaces | The read bem surfaces. |
|
inlinestatic |
mne_read_cov
Wrapper for the FiffStream read_cov member function
Reads a covariance matrix from a fiff file
[in] | p_pStream | an open fiff file. |
[in] | p_Node | look for the matrix in here. |
[in] | cov_kind | what kind of a covariance matrix do we want?. |
[in,out] | p_covData | the read covariance matrix. |
|
static |
|
static |
|
inlinestatic |
mne_read_forward_solution
Wrapper for the MNEForwardSolution::read_forward_solution static function
Reads a forward solution from a fif file
[in] | p_IODevice | A fiff IO device like a fiff QFile or QTCPSocket. |
[in,out] | fwd | A forward solution from a fif file. |
[in] | force_fixed | Force fixed source orientation mode? (optional). |
[in] | surf_ori | Use surface based source coordinate system? (optional). |
[in] | include | Include these channels (optional). |
[in] | exclude | Exclude these channels (optional). |
|
inlinestatic |
mne_read_inverse_operator
Wrapper for the MNEInverseOperator::read_inverse_operator static function
Reads the inverse operator decomposition from a fif file
[in] | p_pIODevice | A fiff IO device like a fiff QFile or QTCPSocket. |
[in,out] | inv | The read inverse operator. |
|
inlinestatic |
mne_read_forward_solution
Wrapper for the MNESourceSpace::read_source_spaces static function
Reads source spaces from a fif file
[in] | p_pStream | The open fiff file. |
[in] | add_geom | Add geometry information to the source spaces. |
[in,out] | p_SourceSpace | The read source spaces. |
|
inlinestatic |
mne_set_current_comp
Wrapper for the FiffInfo::set_current_comp static function Consider taking the member function of a FiffInfo set_current_comp(fiff_int_t value), when compensation should be applied to the channels of FiffInfo
Set the current compensation value in the channel info structures
[in] | chs | fiff channel info list. |
[in] | value | compensation value. |
|
inlinestatic |
mne_transform_source_space_to
Wrapper for the MNESourceSpace transform_source_space_to member function
Transforms source space data to the desired coordinate system
[in,out] | p_pMNESourceSpace | the source space which is should be transformed. |
[in] | dest | destination check code. |
[in] | trans | transformation information. |
|
inlinestatic |