Morphs source estimates from one subject's source space to another. More...
#include <source_morph.h>
Public Member Functions | |
| SourceMorph ()=default | |
| void | compute (const Eigen::VectorXi &verticesFrom, const Eigen::VectorXi &verticesTo, const Eigen::SparseMatrix< double > &morphMap) |
| Compute the morphing transformation. | |
| InvSourceEstimate | apply (const InvSourceEstimate &stcFrom) const |
| Apply the morphing to a source estimate. | |
| bool | isComputed () const |
| Check if the morph has been computed. | |
| int | nVerticesTo () const |
| Get the number of target vertices. | |
Morphs source estimates from one subject's source space to another.
Usage:
Definition at line 66 of file source_morph.h.
|
default |
| InvSourceEstimate SourceMorph::apply | ( | const InvSourceEstimate & | stcFrom | ) | const |
Apply the morphing to a source estimate.
| [in] | stcFrom | Source estimate in the "from" subject's space. |
Definition at line 68 of file source_morph.cpp.
| void SourceMorph::compute | ( | const Eigen::VectorXi & | verticesFrom, |
| const Eigen::VectorXi & | verticesTo, | ||
| const Eigen::SparseMatrix< double > & | 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.
| [in] | verticesFrom | Source vertices in the "from" subject's source space. |
| [in] | verticesTo | Target vertices in the "to" subject's source space. |
| [in] | morphMap | Sparse interpolation matrix (nTo x nFrom) — e.g. from MNEMorphMap::map. |
Definition at line 44 of file source_morph.cpp.
|
inline |
Check if the morph has been computed.
Definition at line 100 of file source_morph.h.
|
inline |
Get the number of target vertices.
Definition at line 106 of file source_morph.h.