|
| Sensors () |
| Default constructor. Number of sensors = 0.
|
|
| Sensors (const Geometry &g) |
| Default constructor with a geometry. Number of sensors = 0.
|
|
| Sensors (const char *filename) |
| Construct from text file.
|
|
| Sensors (const char *filename, const Geometry &g) |
| Construct from file and geometry (for EIT).
|
|
| Sensors (const Matrix &positions, const Geometry &g) |
|
| Sensors (const Strings &labels, const Matrix &positions, const Matrix &orientations, const Vector &weights, const Vector &radii) |
|
| Sensors (const Strings &labels, const Matrix &positions, const Matrix &orientations, const Vector &weights, const Vector &radii, const Geometry &g) |
|
void | load (const char *filename, const char filetype='t') |
| Load sensors from file. Filetype is 't' for text file or 'b' for binary file.
|
|
void | load (const std::string &filename, const char filetype='t') |
|
void | load (std::istream &in) |
| Load description file of sensors from stream.
|
|
void | save (const char *filename) const |
|
void | save (const std::string &filename) const |
|
size_t | getNumberOfSensors () const |
| Return the number of sensors.
|
|
size_t | getNumberOfPositions () const |
| Return the number of integration points.
|
|
Matrix & | getPositions () |
| Return sensors positions.
|
|
const Matrix & | getPositions () const |
|
Matrix & | getOrientations () |
| Return sensors orientations.
|
|
const Matrix & | getOrientations () const |
|
Strings & | getNames () |
| Return sensors names.
|
|
Strings | getNames () const |
|
bool | hasRadii () const |
| Return true if contains radii.
|
|
bool | hasOrientations () const |
| Return true if contains orientations.
|
|
bool | hasNames () const |
| Return true if contains all sensors names.
|
|
Vector | getPosition (const size_t idx) const |
| Return the position (3D point) of the integration point idx.
|
|
Vector | getOrientation (const size_t idx) const |
| Return the orientations (3D point) of the integration point idx.
|
|
std::string | getName (const size_t idx) const |
| Return the name of the idx_th sensor.
|
|
void | setPosition (const size_t idx, const Vector &pos) |
| Set the position (3D point) of the integration point i.
|
|
void | setOrientation (const size_t idx, const Vector &orient) |
| Set the orientation (3D point) of the integration point i.
|
|
bool | hasSensor (const std::string &name) const |
|
size_t | getSensorIdx (const std::string &name) const |
|
Triangles | getInjectionTriangles (const size_t idx) const |
| For EIT, get triangles under the current injection electrode.
|
|
Vector | getRadii () const |
|
Vector | getWeights () const |
|
SparseMatrix | getWeightsMatrix () const |
|
bool | isEmpty () |
| Return if the sensors object is empty. The sensors object is empty if its number of sensors is null.
|
|
void | info () const |
| get info about sensors.
|
|
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):
-
1 line per sensor and 3 columns (EEG sensors OR MEG sensors without orientation OR EIT punctual patches)
-
the 1st, 2nd and 3rd columns are respectively position coordinates x, y, z of sensor
-
1 line per sensor and 4 columns (EEG EIT patches (circular patches)) :
-
the 1st, 2nd and 3rd are respectively position coordinates x, y, z of sensor
-
the 4th is the patche radius (unit relative to the mesh)
-
1 line per sensor and 6 columns (MEG sensors) :
-
the 1st, 2nd and 3rd are respectively position coordinates x, y, z of sensor
-
the 4th, 5th and 6th are coordinates of vector orientation
-
1 line per integration point for each sensor and 7 columns (MEG sensors) :
-
the 1st, 2nd and 3rd are respectively position coordinates x, y, z of sensor
-
the 4th, 5th and 6th are coordinates of vector orientation
-
the 7th is the weight to apply for numerical integration (uses sensor name)
Definition at line 61 of file sensors.h.