MNE-CPP  0.1.9
A Framework for Electrophysiology
Classes | Public Types | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
DISP3DLIB::RtSensorInterpolationMatWorker Class Reference

This worker calculates the interpolation matrix. More...

#include <rtsensorinterpolationmatworker.h>

Classes

struct  InterpolationData
 

Public Types

typedef QSharedPointer< RtSensorInterpolationMatWorkerSPtr
 
typedef QSharedPointer< const RtSensorInterpolationMatWorkerConstSPtr
 

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
 

Detailed Description

This worker calculates the interpolation matrix.

This worker calculates the interpolation matrix.

Definition at line 76 of file rtsensorinterpolationmatworker.h.

Inheritance diagram for DISP3DLIB::RtSensorInterpolationMatWorker:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

Const shared pointer type for RtSensorInterpolationMatWorker class.

Definition at line 82 of file rtsensorinterpolationmatworker.h.

◆ SPtr

Shared pointer type for RtSensorInterpolationMatWorker class.

Definition at line 81 of file rtsensorinterpolationmatworker.h.

Constructor & Destructor Documentation

◆ RtSensorInterpolationMatWorker()

RtSensorInterpolationMatWorker::RtSensorInterpolationMatWorker ( )

Default constructor.

Definition at line 64 of file rtsensorinterpolationmatworker.cpp.

Member Function Documentation

◆ calculateInterpolationOperator()

void RtSensorInterpolationMatWorker::calculateInterpolationOperator ( )
protected

Calculate the interpolation operator based on the set interpolation info.

Definition at line 180 of file rtsensorinterpolationmatworker.cpp.

◆ emitMatrix()

void RtSensorInterpolationMatWorker::emitMatrix ( )
protected

Emit the interpolation matrix.

Definition at line 203 of file rtsensorinterpolationmatworker.cpp.

◆ newInterpolationMatrixCalculated

void DISP3DLIB::RtSensorInterpolationMatWorker::newInterpolationMatrixCalculated ( QSharedPointer< Eigen::SparseMatrix< float > >  pMatInterpolationMatrix)
signal

Emit this signal whenever a new interpolation matrix was calcualted.

Parameters
[in]pMatInterpolationMatrixThe new interpolation matrix.

◆ setBadChannels()

void RtSensorInterpolationMatWorker::setBadChannels ( const FIFFLIB::FiffInfo info)

Sets bad channels and recalculate interpolation matrix.

Parameters
[in]infoThe fiff info including the new bad channels.

Definition at line 148 of file rtsensorinterpolationmatworker.cpp.

◆ setCancelDistance()

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.

Parameters
[in]dCancelDistThe new cancel distance value in meters.

Definition at line 97 of file rtsensorinterpolationmatworker.cpp.

◆ setInterpolationFunction()

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.

Parameters
[in]sInterpolationFunctionFunction that computes interpolation coefficients using the distance values.

Definition at line 74 of file rtsensorinterpolationmatworker.cpp.

◆ setInterpolationInfo()

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.

Parameters
[in]matVerticesThe mesh information in form of vertices.
[in]vecNeighborVerticesThe neighbor vertex information.
[in]vecSensorPosThe QVector that holds the sensor positons in x, y and z coordinates.
[in]fiffEvokedHolds all information about the sensors.
[in]iSensorTypeType of the sensor: FIFFV_EEG_CH or FIFFV_MEG_CH.
Returns
Returns the created interpolation matrix.

Definition at line 107 of file rtsensorinterpolationmatworker.cpp.

Member Data Documentation

◆ m_bInterpolationInfoIsInit

bool DISP3DLIB::RtSensorInterpolationMatWorker::m_bInterpolationInfoIsInit
protected

Flag if this thread's interpoaltion data was initialized.

Definition at line 169 of file rtsensorinterpolationmatworker.h.

◆ m_lInterpolationData

struct DISP3DLIB::RtSensorInterpolationMatWorker::InterpolationData DISP3DLIB::RtSensorInterpolationMatWorker::m_lInterpolationData
protected

Container for the interpolation data.


The documentation for this class was generated from the following files: