OpenMEEG
|
#include <sensors.h>
Public Member Functions | |
Sensors () | |
Sensors (const Geometry &g) | |
Sensors (const char *filename) | |
Sensors (const char *filename, const Geometry &g) | |
void | load (const char *filename, char filetype='t') |
void | load (std::istream &in) |
void | save (const char *filename) |
size_t | getNumberOfSensors () const |
size_t | getNumberOfPositions () const |
Matrix & | getPositions () |
Matrix | getPositions () const |
Matrix & | getOrientations () |
Matrix | getOrientations () const |
Strings & | getNames () |
Strings | getNames () const |
bool | hasRadii () const |
bool | hasOrientations () const |
bool | hasNames () const |
Vector | getPosition (size_t idx) const |
Vector | getOrientation (size_t idx) const |
std::string | getName (size_t idx) const |
void | setPosition (size_t idx, Vector &pos) |
void | setOrientation (size_t idx, Vector &orient) |
bool | hasSensor (std::string name) |
size_t | getSensorIdx (std::string name) |
Triangles | getInjectionTriangles (size_t idx) const |
Vector | getRadii () const |
Vector | getWeights () const |
SparseMatrix | getWeightsMatrix () const |
bool | isEmpty () |
void | info () const |
get info about sensors. More... | |
Private Member Functions | |
void | findInjectionTriangles () |
Private Attributes | |
size_t | m_nb |
Strings | m_names |
Matrix | m_positions |
Matrix | m_orientations |
Vector | m_weights |
Vector | m_radii |
std::vector< Triangles > | m_triangles |
const Geometry * | m_geo |
std::vector< size_t > | m_pointSensorIdx |
Sensors class for EEG and MEG sensors. This class is made for reading sensors description file. This description file is a file text. Sensors may have names (labels) in the first column of the file (it has to contains at least one character to be considered as label) the file can have the shape of (neglecting if present the first, label column):
|
inline |
|
inline |
|
inline |
|
inline |
void OpenMEEG::Sensors::load | ( | const char * | filename, |
char | filetype = 't' |
||
) |
Construct from file and geometry (for EIT). Load sensors from file. Filetype is 't' for text file or 'b' for binary file.
void OpenMEEG::Sensors::load | ( | std::istream & | in | ) |
Load description file of sensors from stream.
void OpenMEEG::Sensors::save | ( | const char * | filename | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool OpenMEEG::Sensors::hasSensor | ( | std::string | name | ) |
size_t OpenMEEG::Sensors::getSensorIdx | ( | std::string | name | ) |
|
inline |
SparseMatrix OpenMEEG::Sensors::getWeightsMatrix | ( | ) | const |
|
inline |
void OpenMEEG::Sensors::info | ( | ) | const |
get info about sensors.
|
private |
Get the triangles under each EIT sensors
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |