MNE-CPP
beta 1.0
|
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< VectorXi > | get_vertno () const |
QList< VectorXi > | label_src_vertno_sel (const Label &p_label, VectorXi &src_sel) const |
MNESourceSpace | pick_regions (const QList< Label > &p_qListLabels) const |
qint32 | size () const |
bool | transform_source_space_to (fiff_int_t dest, FiffCoordTrans &trans) |
void | writeToStream (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 (FiffStream::SPtr &p_pStream, bool add_geom, FiffDirTree &p_Tree, MNESourceSpace &p_SourceSpace) |
Source Space descritpion.
Source Space descritpion
Definition at line 115 of file mne_sourcespace.h.
typedef QSharedPointer<const MNESourceSpace> MNELIB::MNESourceSpace::ConstSPtr |
Const shared pointer type for MNESourceSpace.
Definition at line 119 of file mne_sourcespace.h.
typedef QSharedPointer<MNESourceSpace> MNELIB::MNESourceSpace::SPtr |
Shared pointer type for MNESourceSpace.
Definition at line 118 of file mne_sourcespace.h.
MNESourceSpace::MNESourceSpace | ( | ) |
Default constructor
Definition at line 62 of file mne_sourcespace.cpp.
MNESourceSpace::MNESourceSpace | ( | const MNESourceSpace & | p_MNESourceSpace | ) |
Copy constructor.
[in] | p_MNESourceSpace | MNE forward solution |
Definition at line 69 of file mne_sourcespace.cpp.
MNESourceSpace::~MNESourceSpace | ( | ) |
Destroys the MNE forward solution
Definition at line 78 of file mne_sourcespace.cpp.
void MNESourceSpace::clear | ( | ) |
Initializes MNE source space.
Definition at line 86 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 317 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 347 of file mne_sourcespace.h.
QList< VectorXi > MNESourceSpace::label_src_vertno_sel | ( | const Label & | p_label, |
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 105 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 845 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 859 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 873 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 889 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 587 of file mne_sourcespace.cpp.
MNESourceSpace MNESourceSpace::pick_regions | ( | const QList< Label > & | p_qListLabels | ) | const |
Reduces a source space to selected regions
[in] | p_qListLabels | ROIs |
Definition at line 164 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_Tree | Search for the source spaces here |
[out] | p_SourceSpace | The read source spaces |
Definition at line 256 of file mne_sourcespace.cpp.
|
inline |
Returns the number of stored hemispheres 0, 1 or 2
Definition at line 355 of file mne_sourcespace.h.
bool MNESourceSpace::transform_source_space_to | ( | fiff_int_t | dest, |
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 333 of file mne_sourcespace.cpp.
void MNESourceSpace::writeToStream | ( | FiffStream * | p_pStream | ) |
Write the source spaces to a FIF stream
[in] | p_pStream | The stream to write to. |
Definition at line 829 of file mne_sourcespace.cpp.