MNE-CPP
0.1.9
A Framework for Electrophysiology
|
Source Space descritpion. More...
#include <mne_sourcespace.h>
Public Types | |
typedef QSharedPointer< MNESourceSpace > | SPtr |
typedef QSharedPointer< const MNESourceSpace > | ConstSPtr |
Public Member Functions | |
MNESourceSpace () | |
MNESourceSpace (const MNESourceSpace &p_MNESourceSpace) | |
~MNESourceSpace () | |
void | clear () |
bool | isEmpty () const |
QList< Eigen::VectorXi > | get_vertno () const |
QList< Eigen::VectorXi > | label_src_vertno_sel (const FSLIB::Label &p_label, Eigen::VectorXi &src_sel) const |
MNESourceSpace | pick_regions (const QList< FSLIB::Label > &p_qListLabels) const |
qint32 | size () const |
bool | transform_source_space_to (FIFFLIB::fiff_int_t dest, FIFFLIB::FiffCoordTrans &trans) |
void | writeToStream (FIFFLIB::FiffStream *p_pStream) |
MNEHemisphere & | operator[] (qint32 idx) |
const MNEHemisphere & | operator[] (qint32 idx) const |
MNEHemisphere & | operator[] (QString idt) |
const MNEHemisphere & | operator[] (QString idt) const |
Static Public Member Functions | |
static qint32 | find_source_space_hemi (MNEHemisphere &p_Hemisphere) |
static bool | patch_info (MNEHemisphere &p_Hemisphere) |
static bool | readFromStream (FIFFLIB::FiffStream::SPtr &p_pStream, bool add_geom, MNESourceSpace &p_SourceSpace) |
Friends | |
bool | operator== (const MNESourceSpace &a, const MNESourceSpace &b) |
typedef QSharedPointer<const MNESourceSpace> MNELIB::MNESourceSpace::ConstSPtr |
Const shared pointer type for MNESourceSpace.
Definition at line 96 of file mne_sourcespace.h.
typedef QSharedPointer<MNESourceSpace> MNELIB::MNESourceSpace::SPtr |
Shared pointer type for MNESourceSpace.
Definition at line 95 of file mne_sourcespace.h.
MNESourceSpace::MNESourceSpace | ( | ) |
Default constructor
Definition at line 68 of file mne_sourcespace.cpp.
MNESourceSpace::MNESourceSpace | ( | const MNESourceSpace & | p_MNESourceSpace | ) |
Copy constructor.
[in] | p_MNESourceSpace | MNE forward solution. |
Definition at line 74 of file mne_sourcespace.cpp.
MNESourceSpace::~MNESourceSpace | ( | ) |
Destroys the MNE forward solution
Definition at line 81 of file mne_sourcespace.cpp.
void MNESourceSpace::clear | ( | ) |
Initializes MNE source space.
Definition at line 87 of file mne_sourcespace.cpp.
|
static |
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. |
Definition at line 315 of file mne_sourcespace.cpp.
QList< VectorXi > MNESourceSpace::get_vertno | ( | ) | const |
Returns the Zero based (different to MATLAB) indices of the used vertices of both hemispheres
Definition at line 94 of file mne_sourcespace.cpp.
|
inline |
True if MNE Source Space is empty.
Definition at line 326 of file mne_sourcespace.h.
QList< VectorXi > MNESourceSpace::label_src_vertno_sel | ( | const FSLIB::Label & | p_label, |
Eigen::VectorXi & | src_sel | ||
) | const |
Find vertex numbers and indices from label
[in] | label | Source space label. |
[out] | src_sel | array of int (idx.size() = vertno[0].size() + vertno[1].size()). Indices of the selected vertices in sourse space |
Definition at line 104 of file mne_sourcespace.cpp.
MNEHemisphere & MNESourceSpace::operator[] | ( | qint32 | idx | ) |
Subscript operator [] to access parameter values by index
[in] | idx | the hemisphere index (0 or 1). |
Definition at line 776 of file mne_sourcespace.cpp.
const MNEHemisphere & MNESourceSpace::operator[] | ( | qint32 | idx | ) | const |
Subscript operator [] to access parameter values by index
[in] | idx | the hemisphere index (0 or 1). |
Definition at line 789 of file mne_sourcespace.cpp.
MNEHemisphere & MNESourceSpace::operator[] | ( | QString | idt | ) |
Subscript operator [] to access parameter values by index
[in] | idt | the hemisphere identifier ("lh" or "rh"). |
Definition at line 802 of file mne_sourcespace.cpp.
const MNEHemisphere & MNESourceSpace::operator[] | ( | QString | idt | ) | const |
Subscript operator [] to access parameter values by index
[in] | idt | the hemisphere identifier ("lh" or "rh"). |
Definition at line 817 of file mne_sourcespace.cpp.
|
static |
Generate the patch information from the 'nearest' vector in a source space. For vertex in the source space it provides the list of neighboring vertices in the high resolution triangulation.
[in,out] | p_Hemisphere | The source space. |
Definition at line 577 of file mne_sourcespace.cpp.
MNESourceSpace MNESourceSpace::pick_regions | ( | const QList< FSLIB::Label > & | p_qListLabels | ) | const |
Reduces a source space to selected regions
[in] | p_qListLabels | ROIs. |
Definition at line 162 of file mne_sourcespace.cpp.
|
static |
Reads source spaces from a fif file
[in,out] | p_pStream | The opened fif file. |
[in] | add_geom | Add geometry information to the source spaces. |
[in,out] | p_SourceSpace | The read source spaces. |
Definition at line 253 of file mne_sourcespace.cpp.
|
inline |
Returns the number of stored hemispheres 0, 1 or 2
Definition at line 333 of file mne_sourcespace.h.
bool MNESourceSpace::transform_source_space_to | ( | FIFFLIB::fiff_int_t | dest, |
FIFFLIB::FiffCoordTrans & | trans | ||
) |
Wrapper for the MNESourceSpace transform_source_space_to member function
Note: In difference to mne-matlab this is not a static function. This is a method of the MNESourceSpace class, that's why a tree object doesn't need to be handed to the function.
Transforms source space data to the desired coordinate system
[in] | dest | destination check code. |
[in] | trans | transformation information. |
Definition at line 330 of file mne_sourcespace.cpp.
void MNESourceSpace::writeToStream | ( | FIFFLIB::FiffStream * | p_pStream | ) |
Write the source spaces to a FIF stream
[in] | p_pStream | The stream to write to. |
Definition at line 761 of file mne_sourcespace.cpp.
|
friend |
Overloaded == operator to compare an object to this instance.
[in] | object | The object which should be compared to. |
Definition at line 340 of file mne_sourcespace.h.