SourceMorph
Namespace: INVERSELIB · Library: Inverse Library
mne.SourceMorph in MNE-Python.
#include <inv/source_morph.h>
class INVLIB::SourceMorph
Morphs source estimates from one subject's source space to another.
Usage:
SourceMorph morph;
morph.compute(srcVerticesFrom, srcVerticesTo, morphMapLh, morphMapRh);
InvSourceEstimate morphed = morph.apply(stc);
Public Methods
SourceMorph()
compute(verticesFrom, verticesTo, morphMap)
Compute the morphing transformation.
Builds a sparse interpolation matrix that maps source estimate data from one vertex set to another using nearest-neighbor interpolation.
Parameters:
-
verticesFrom : const Eigen::VectorXi & Source vertices in the "from" subject's source space.
-
verticesTo : const Eigen::VectorXi & Target vertices in the "to" subject's source space.
-
morphMap : const Eigen::SparseMatrix< double > & Sparse interpolation matrix (nTo x nFrom) — e.g. from MNEMorphMap::map.
apply(stcFrom)
Apply the morphing to a source estimate.
Parameters:
- stcFrom : const InvSourceEstimate & Source estimate in the "from" subject's space.
Returns:
- InvSourceEstimate — Morphed source estimate in the "to" subject's space.
isComputed()
Check if the morph has been computed.
nVerticesTo()
Get the number of target vertices.
Authors of this file
- Christoph Dinh <christoph.dinh@mne-cpp.org>