Source Space descritpion. More...
#include <mne_source_spaces.h>
Public Types | |
| using | SPtr = std::shared_ptr<MNESourceSpaces> |
| using | ConstSPtr = std::shared_ptr<const MNESourceSpaces> |
Public Member Functions | |
| MNESourceSpaces () | |
| MNESourceSpaces (const MNESourceSpaces &p_MNESourceSpaces) | |
| ~MNESourceSpaces () | |
| 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 |
| MNESourceSpaces | 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) |
| MNESourceSpace & | operator[] (qint32 idx) |
| const MNESourceSpace & | operator[] (qint32 idx) const |
| MNESourceSpace & | operator[] (QString idt) |
| const MNESourceSpace & | operator[] (QString idt) const |
| MNEHemisphere * | hemisphereAt (qint32 idx) |
| const MNEHemisphere * | hemisphereAt (qint32 idx) const |
| std::shared_ptr< MNESourceSpace > & | at (qint32 idx) |
| const std::shared_ptr< MNESourceSpace > & | at (qint32 idx) const |
Static Public Member Functions | |
| static qint32 | find_source_space_hemi (MNESourceSpace &p_SourceSpace) |
| static bool | patch_info (MNEHemisphere &p_Hemisphere) |
| static bool | readFromStream (FIFFLIB::FiffStream::SPtr &p_pStream, bool add_geom, MNESourceSpaces &p_SourceSpace) |
Friends | |
| bool | operator== (const MNESourceSpaces &a, const MNESourceSpaces &b) |
Source Space descritpion.
Source Space descritpion
Definition at line 93 of file mne_source_spaces.h.
| using MNELIB::MNESourceSpaces::ConstSPtr = std::shared_ptr<const MNESourceSpaces> |
Const shared pointer type for MNESourceSpaces.
Definition at line 97 of file mne_source_spaces.h.
| using MNELIB::MNESourceSpaces::SPtr = std::shared_ptr<MNESourceSpaces> |
Shared pointer type for MNESourceSpaces.
Definition at line 96 of file mne_source_spaces.h.
| MNESourceSpaces::MNESourceSpaces | ( | ) |
Default constructor
Definition at line 69 of file mne_source_spaces.cpp.
| MNESourceSpaces::MNESourceSpaces | ( | const MNESourceSpaces & | p_MNESourceSpaces | ) |
Copy constructor.
| [in] | p_MNESourceSpaces | MNE forward solution. |
Definition at line 75 of file mne_source_spaces.cpp.
| MNESourceSpaces::~MNESourceSpaces | ( | ) |
Destroys the MNE forward solution
Definition at line 84 of file mne_source_spaces.cpp.
| std::shared_ptr< MNESourceSpace > & MNESourceSpaces::at | ( | qint32 | idx | ) |
Access the underlying shared_ptr at the given index.
| [in] | idx | the source space index. |
Definition at line 686 of file mne_source_spaces.cpp.
| const std::shared_ptr< MNESourceSpace > & MNESourceSpaces::at | ( | qint32 | idx | ) | const |
Access the underlying shared_ptr at the given index (const).
| [in] | idx | the source space index. |
Definition at line 693 of file mne_source_spaces.cpp.
| void MNESourceSpaces::clear | ( | ) |
Initializes MNE source space.
Definition at line 90 of file mne_source_spaces.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 327 of file mne_source_spaces.cpp.
| QList< VectorXi > MNESourceSpaces::get_vertno | ( | ) | const |
Returns the Zero based (different to MATLAB) indices of the used vertices of both hemispheres
Definition at line 97 of file mne_source_spaces.cpp.
| MNEHemisphere * MNESourceSpaces::hemisphereAt | ( | qint32 | idx | ) |
Safe downcast to MNEHemisphere at the given index.
| [in] | idx | the source space index. |
Definition at line 668 of file mne_source_spaces.cpp.
| const MNEHemisphere * MNESourceSpaces::hemisphereAt | ( | qint32 | idx | ) | const |
Safe downcast to MNEHemisphere at the given index (const).
| [in] | idx | the source space index. |
Definition at line 677 of file mne_source_spaces.cpp.
|
inline |
True if MNE Source Space is empty.
Definition at line 367 of file mne_source_spaces.h.
| QList< VectorXi > MNESourceSpaces::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 107 of file mne_source_spaces.cpp.
| MNESourceSpace & MNESourceSpaces::operator[] | ( | qint32 | idx | ) |
Subscript operator [] to access source spaces by index.
| [in] | idx | the source space index (0 or 1). |
Definition at line 612 of file mne_source_spaces.cpp.
| const MNESourceSpace & MNESourceSpaces::operator[] | ( | qint32 | idx | ) | const |
Subscript operator [] to access source spaces by index.
| [in] | idx | the source space index (0 or 1). |
Definition at line 625 of file mne_source_spaces.cpp.
| MNESourceSpace & MNESourceSpaces::operator[] | ( | QString | idt | ) |
Subscript operator [] to access source spaces by hemisphere identifier.
| [in] | idt | the hemisphere identifier ("lh" or "rh"). |
Definition at line 638 of file mne_source_spaces.cpp.
| const MNESourceSpace & MNESourceSpaces::operator[] | ( | QString | idt | ) | const |
Subscript operator [] to access source spaces by hemisphere identifier.
| [in] | idt | the hemisphere identifier ("lh" or "rh"). |
Definition at line 653 of file mne_source_spaces.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 581 of file mne_source_spaces.cpp.
| MNESourceSpaces MNESourceSpaces::pick_regions | ( | const QList< FSLIB::Label > & | p_qListLabels | ) | const |
Reduces a source space to selected regions
| [in] | p_qListLabels | ROIs. |
Definition at line 165 of file mne_source_spaces.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 265 of file mne_source_spaces.cpp.
|
inline |
Returns the number of stored hemispheres 0, 1 or 2
Definition at line 374 of file mne_source_spaces.h.
| bool MNESourceSpaces::transform_source_space_to | ( | FIFFLIB::fiff_int_t | dest, |
| FIFFLIB::FiffCoordTrans & | trans ) |
Wrapper for the MNESourceSpaces transform_source_space_to member function
Note: In difference to mne-matlab this is not a static function. This is a method of the MNESourceSpaces 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 334 of file mne_source_spaces.cpp.
| void MNESourceSpaces::writeToStream | ( | FIFFLIB::FiffStream * | p_pStream | ) |
Write the source spaces to a FIF stream
| [in] | p_pStream | The stream to write to. |
Definition at line 595 of file mne_source_spaces.cpp.
|
friend |
Overloaded == operator to compare an object to this instance.
| [in] | object | The object which should be compared to. |
Definition at line 381 of file mne_source_spaces.h.