MNENearest
Namespace: MNELIB · Library: MNE Library
#include <mne/mne_nearest.h>
class MNELIB::MNENearest
Implements the MNE Nearest description (Replaces *mneNearest,mneNearestRec; struct of MNE-C mne_types.h).
This is used in the patch definitions
Public Methods
MNENearest()
Constructs the MNE Nearest.
~MNENearest()
Destroys the MNE Nearest Refactored: (.c).
Example
No example of its own: Per-vertex nearest-source record stored in MNESurfaceOrVolume::nearest; filled while reading a source space.
It is exercised by:
src/examples/ex_mne_api/main.cpp
QFile srcFile(data + "/subjects/sample/bem/sample-oct-6-src.fif");
FiffStream::SPtr stream(new FiffStream(&srcFile));
MNESourceSpaces src;
stream->open();
MNESourceSpaces::readFromStream(stream, true, src); // add_geom: normals, triangle data and patches
stream->close();
const auto& lh = dynamic_cast<const MNEHemisphere&>(src[0]);
QList<VectorXi> vertno = src.get_vertno(); // used vertices per hemisphere
From ex_mne_api.
Authors of this file
- Christoph Dinh <christoph.dinh@mne-cpp.org>