MNE-CPP  0.1.9
A Framework for Electrophysiology
Public Types | Public Member Functions | List of all members
UTILSLIB::Warp Class Reference

Thin Plate Spline Warp. More...

#include <warp.h>

Public Types

typedef QSharedPointer< WarpSPtr
 
typedef QSharedPointer< const WarpConstSPtr
 

Public Member Functions

Eigen::MatrixXf calculate (const Eigen::MatrixXf &sLm, const Eigen::MatrixXf &dLm, const Eigen::MatrixXf &sVert)
 
void calculate (const Eigen::MatrixXf &sLm, const Eigen::MatrixXf &dLm, QList< Eigen::MatrixXf > &vertList)
 
Eigen::MatrixXf readsLm (const QString &electrodeFileName)
 
Eigen::MatrixXf readsLm (const std::string &electrodeFileName)
 

Detailed Description

Thin Plate Spline Warp.

Definition at line 72 of file warp.h.

Member Typedef Documentation

◆ ConstSPtr

typedef QSharedPointer<const Warp> UTILSLIB::Warp::ConstSPtr

Const shared pointer type for Warp.

Definition at line 77 of file warp.h.

◆ SPtr

typedef QSharedPointer<Warp> UTILSLIB::Warp::SPtr

Shared pointer type for Warp.

Definition at line 76 of file warp.h.

Member Function Documentation

◆ calculate() [1/2]

Eigen::MatrixXf UTILSLIB::Warp::calculate ( const Eigen::MatrixXf &  sLm,
const Eigen::MatrixXf &  dLm,
const Eigen::MatrixXf &  sVert 
)

Calculates the TPS Warp of given setup

Parameters
[in]sLm3D Landmarks of the source geometry.
[in]dLm3D Landmarks of the destination geometry.
[in]sVertVertices of the source geometry.
Returns
wVert Vertices of the warped destination geometry.

◆ calculate() [2/2]

void UTILSLIB::Warp::calculate ( const Eigen::MatrixXf &  sLm,
const Eigen::MatrixXf &  dLm,
QList< Eigen::MatrixXf > &  vertList 
)

Calculates the TPS Warp of a given setup for a List of vertices

Parameters
[in]sLm3D Landmarks of the source geometry.
[in]dLm3D Landmarks of the destination geometry.
[in/out]vertList List of Vertices of the source geometry that are warped to the destination.

◆ readsLm() [1/2]

MatrixXf Warp::readsLm ( const QString &  electrodeFileName)

Read electrode positions from MRI Database

Parameters
[in]electrodeFileName.txt file of electrodes.
Returns
electrodes Matrix with electrode positions.

Definition at line 152 of file warp.cpp.

◆ readsLm() [2/2]

MatrixXf Warp::readsLm ( const std::string &  electrodeFileName)

Read electrode positions from MRI Database

Parameters
[in]electrodeFileName.txt file of electrodes.
Returns
electrodes Matrix with electrode positions.

Definition at line 194 of file warp.cpp.


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