MNE-CPP
0.1.9
A Framework for Electrophysiology
|
This worker calculates the interpolation matrix. More...
#include <rtsensorinterpolationmatworker.h>
Classes | |
struct | InterpolationData |
Public Types | |
typedef QSharedPointer< RtSensorInterpolationMatWorker > | SPtr |
typedef QSharedPointer< const RtSensorInterpolationMatWorker > | ConstSPtr |
Signals | |
void | newInterpolationMatrixCalculated (QSharedPointer< Eigen::SparseMatrix< float > > pMatInterpolationMatrix) |
Public Member Functions | |
RtSensorInterpolationMatWorker () | |
void | setInterpolationFunction (const QString &sInterpolationFunction) |
void | setCancelDistance (double dCancelDist) |
void | setInterpolationInfo (const Eigen::MatrixX3f &matVertices, const QVector< QVector< int > > &vecNeighborVertices, const QVector< Eigen::Vector3f > &vecSensorPos, const FIFFLIB::FiffInfo &fiffInfo, int iSensorType) |
void | setBadChannels (const FIFFLIB::FiffInfo &info) |
Protected Member Functions | |
void | calculateInterpolationOperator () |
void | emitMatrix () |
Protected Attributes | |
struct DISP3DLIB::RtSensorInterpolationMatWorker::InterpolationData | m_lInterpolationData |
bool | m_bInterpolationInfoIsInit |
This worker calculates the interpolation matrix.
This worker calculates the interpolation matrix.
Definition at line 76 of file rtsensorinterpolationmatworker.h.
typedef QSharedPointer<const RtSensorInterpolationMatWorker> DISP3DLIB::RtSensorInterpolationMatWorker::ConstSPtr |
Const shared pointer type for RtSensorInterpolationMatWorker class.
Definition at line 82 of file rtsensorinterpolationmatworker.h.
typedef QSharedPointer<RtSensorInterpolationMatWorker> DISP3DLIB::RtSensorInterpolationMatWorker::SPtr |
Shared pointer type for RtSensorInterpolationMatWorker class.
Definition at line 81 of file rtsensorinterpolationmatworker.h.
RtSensorInterpolationMatWorker::RtSensorInterpolationMatWorker | ( | ) |
Default constructor.
Definition at line 64 of file rtsensorinterpolationmatworker.cpp.
|
protected |
Calculate the interpolation operator based on the set interpolation info.
Definition at line 180 of file rtsensorinterpolationmatworker.cpp.
|
protected |
Emit the interpolation matrix.
Definition at line 203 of file rtsensorinterpolationmatworker.cpp.
|
signal |
Emit this signal whenever a new interpolation matrix was calcualted.
[in] | pMatInterpolationMatrix | The new interpolation matrix. |
void RtSensorInterpolationMatWorker::setBadChannels | ( | const FIFFLIB::FiffInfo & | info | ) |
Sets bad channels and recalculate interpolation matrix.
[in] | info | The fiff info including the new bad channels. |
Definition at line 148 of file rtsensorinterpolationmatworker.cpp.
void RtSensorInterpolationMatWorker::setCancelDistance | ( | double | dCancelDist | ) |
This function sets the cancel distance used in distance calculations for the interpolation. Distances higher than this are ignored, i.e. the respective coefficients are set to zero. Warning: Using this function can take some seconds because recalculation are required.
[in] | dCancelDist | The new cancel distance value in meters. |
Definition at line 97 of file rtsensorinterpolationmatworker.cpp.
void RtSensorInterpolationMatWorker::setInterpolationFunction | ( | const QString & | sInterpolationFunction | ) |
This function sets the function that is used in the interpolation process. Warning: Using this function can take some seconds because recalculation are required.
[in] | sInterpolationFunction | Function that computes interpolation coefficients using the distance values. |
Definition at line 74 of file rtsensorinterpolationmatworker.cpp.
void RtSensorInterpolationMatWorker::setInterpolationInfo | ( | const Eigen::MatrixX3f & | matVertices, |
const QVector< QVector< int > > & | vecNeighborVertices, | ||
const QVector< Eigen::Vector3f > & | vecSensorPos, | ||
const FIFFLIB::FiffInfo & | fiffInfo, | ||
int | iSensorType | ||
) |
Sets the information needed creating the interpolation matrix. Warning: Using this function can take some seconds because recalculation are required.
[in] | matVertices | The mesh information in form of vertices. |
[in] | vecNeighborVertices | The neighbor vertex information. |
[in] | vecSensorPos | The QVector that holds the sensor positons in x, y and z coordinates. |
[in] | fiffEvoked | Holds all information about the sensors. |
[in] | iSensorType | Type of the sensor: FIFFV_EEG_CH or FIFFV_MEG_CH. |
Definition at line 107 of file rtsensorinterpolationmatworker.cpp.
|
protected |
Flag if this thread's interpoaltion data was initialized.
Definition at line 169 of file rtsensorinterpolationmatworker.h.
|
protected |
Container for the interpolation data.