MNE-CPP
0.1.9
A Framework for Electrophysiology
|
This worker calculates the interpolation matrix. More...
#include <rtsourceinterpolationmatworker.h>
Classes | |
struct | InterpolationData |
Public Types | |
typedef QSharedPointer< RtSourceInterpolationMatWorker > | SPtr |
typedef QSharedPointer< const RtSourceInterpolationMatWorker > | ConstSPtr |
Signals | |
void | newInterpolationMatrixCalculated (QSharedPointer< Eigen::SparseMatrix< float > > pMatInterpolationMatrix) |
Public Member Functions | |
RtSourceInterpolationMatWorker () | |
void | setInterpolationFunction (const QString &sInterpolationFunction) |
void | setVisualizationType (int iVisType) |
void | setCancelDistance (double dCancelDist) |
void | setInterpolationInfo (const Eigen::MatrixX3f &matVertices, const QVector< QVector< int > > &vecNeighborVertices, const QVector< int > &vecMappedSubset) |
void | setAnnotationInfo (const Eigen::VectorXi &vecLabelIds, const QList< FSLIB::Label > &lLabels, const Eigen::VectorXi &vecVertNo) |
Protected Member Functions | |
void | calculateInterpolationOperator () |
void | calculateAnnotationOperator () |
void | emitMatrix () |
Protected Attributes | |
struct DISP3DLIB::RtSourceInterpolationMatWorker::InterpolationData | m_lInterpolationData |
bool | m_bInterpolationInfoIsInit |
bool | m_bAnnotationInfoIsInit |
int | m_iVisualizationType |
QSharedPointer< Eigen::SparseMatrix< float > > | m_pMatInterpolationMat |
QSharedPointer< Eigen::SparseMatrix< float > > | m_pMatAnnotationMat |
This worker calculates the interpolation matrix.
This worker calculates the interpolation matrix.
Definition at line 85 of file rtsourceinterpolationmatworker.h.
typedef QSharedPointer<const RtSourceInterpolationMatWorker> DISP3DLIB::RtSourceInterpolationMatWorker::ConstSPtr |
Const shared pointer type for RtSourceInterpolationMatWorker class.
Definition at line 91 of file rtsourceinterpolationmatworker.h.
typedef QSharedPointer<RtSourceInterpolationMatWorker> DISP3DLIB::RtSourceInterpolationMatWorker::SPtr |
Shared pointer type for RtSourceInterpolationMatWorker class.
Definition at line 90 of file rtsourceinterpolationmatworker.h.
RtSourceInterpolationMatWorker::RtSourceInterpolationMatWorker | ( | ) |
Default constructor.
Definition at line 67 of file rtsourceinterpolationmatworker.cpp.
|
protected |
Calculate the annotation operator based on the set annotation info.
Definition at line 218 of file rtsourceinterpolationmatworker.cpp.
|
protected |
Calculate the interpolation operator based on the set interpolation info.
Definition at line 196 of file rtsourceinterpolationmatworker.cpp.
|
protected |
Emit the interpolation matrix.
Definition at line 248 of file rtsourceinterpolationmatworker.cpp.
|
signal |
Emit this signal whenever a new interpolation matrix was calcualted.
[in] | pMatInterpolationMatrix | The new interpolation matrix. |
void RtSourceInterpolationMatWorker::setAnnotationInfo | ( | const Eigen::VectorXi & | vecLabelIds, |
const QList< FSLIB::Label > & | lLabels, | ||
const Eigen::VectorXi & | vecVertNo | ||
) |
Set annotation data.
[in] | vecLabelIds | The labels ids for each of the right hemipshere surface vertex idx. |
[in] | lLabels | The label information for the right hemipshere. |
[in] | vecVertNo | The vertNos for the right hemisphere. |
Definition at line 167 of file rtsourceinterpolationmatworker.cpp.
void RtSourceInterpolationMatWorker::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 125 of file rtsourceinterpolationmatworker.cpp.
void RtSourceInterpolationMatWorker::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 81 of file rtsourceinterpolationmatworker.cpp.
void RtSourceInterpolationMatWorker::setInterpolationInfo | ( | const Eigen::MatrixX3f & | matVertices, |
const QVector< QVector< int > > & | vecNeighborVertices, | ||
const QVector< int > & | vecMappedSubset | ||
) |
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] | vecMappedSubset | Vector index position represents the id of the sensor and the qint in each cell is the vertex it is mapped to. |
Definition at line 142 of file rtsourceinterpolationmatworker.cpp.
void RtSourceInterpolationMatWorker::setVisualizationType | ( | int | iVisType | ) |
Set the visualization type.
[in] | iVisType | The new visualization type. |
Definition at line 114 of file rtsourceinterpolationmatworker.cpp.
|
protected |
Flag if this thread's annotation data was initialized. This flag is used to decide whether specific visualization types can be computed.
Definition at line 193 of file rtsourceinterpolationmatworker.h.
|
protected |
Flag if this thread's interpoaltion data was initialized.
Definition at line 192 of file rtsourceinterpolationmatworker.h.
|
protected |
The visualization type (smoothing or annotation based).
Definition at line 195 of file rtsourceinterpolationmatworker.h.
|
protected |
Container for the interpolation data.
|
protected |
The current itnerpolation matrix (keep this as member so we can easily switch between interpolation and annotation based visualization).
Definition at line 198 of file rtsourceinterpolationmatworker.h.
|
protected |
The current itnerpolation matrix (keep this as member so we can easily switch between interpolation and annotation based visualization).
Definition at line 197 of file rtsourceinterpolationmatworker.h.