This structure is used in the compensated field calculations. More...
#include <fwd_comp_data.h>
Public Member Functions | |
| FwdCompData () | |
| ~FwdCompData () | |
Static Public Member Functions | |
| static int | fwd_comp_field (const Eigen::Vector3f &rd, const Eigen::Vector3f &Q, FwdCoilSet &coils, Eigen::Ref< Eigen::VectorXf > res, void *client) |
| static int | fwd_make_ctf_comp_coils (MNELIB::MNECTFCompDataSet *set, FwdCoilSet *coils, FwdCoilSet *comp_coils) |
| static FwdCompData * | fwd_make_comp_data (MNELIB::MNECTFCompDataSet *set, FwdCoilSet *coils, FwdCoilSet *comp_coils, fwdFieldFunc field, fwdVecFieldFunc vec_field, fwdFieldGradFunc field_grad, void *client) |
| static int | fwd_comp_field_vec (const Eigen::Vector3f &rd, FwdCoilSet &coils, Eigen::Ref< Eigen::MatrixXf > res, void *client) |
| static int | fwd_comp_field_grad (const Eigen::Vector3f &rd, const Eigen::Vector3f &Q, FwdCoilSet &coils, Eigen::Ref< Eigen::VectorXf > res, Eigen::Ref< Eigen::VectorXf > xgrad, Eigen::Ref< Eigen::VectorXf > ygrad, Eigen::Ref< Eigen::VectorXf > zgrad, void *client) |
Public Attributes | |
| MNELIB::MNECTFCompDataSet * | set |
| FwdCoilSet * | comp_coils |
| fwdFieldFunc | field |
| fwdVecFieldFunc | vec_field |
| fwdFieldGradFunc | field_grad |
| void * | client |
| Eigen::VectorXf | work |
| Eigen::MatrixXf | vec_work |
This structure is used in the compensated field calculations.
Implements the Forward Compensation Data description (Replaces *fwdCompData,fwdCompDataRec; struct of MNE-C fwd_comp_data.h).
Definition at line 85 of file fwd_comp_data.h.
| FwdCompData::FwdCompData | ( | ) |
Constructs the Forward Compensation Data
Definition at line 64 of file fwd_comp_data.cpp.
| FwdCompData::~FwdCompData | ( | ) |
Destroys the Forward Compensation Data
Definition at line 76 of file fwd_comp_data.cpp.
|
static |
Calculate the compensated field for one dipole component.
| [in] | rd | Dipole position. |
| [in] | Q | Dipole moment direction. |
| [in] | coils | Coil definitions. |
| [out] | res | Result vector. |
| [in] | client | Pointer to FwdCompData. |
Definition at line 86 of file fwd_comp_data.cpp.
|
static |
Calculate the compensated field and gradient for one dipole component.
| [in] | rd | Dipole position. |
| [in] | Q | Dipole moment direction. |
| [in] | coils | Coil definitions. |
| [out] | res | Result vector. |
| [out] | xgrad | X-gradient result. |
| [out] | ygrad | Y-gradient result. |
| [out] | zgrad | Z-gradient result. |
| [in] | client | Pointer to FwdCompData. |
Definition at line 247 of file fwd_comp_data.cpp.
|
static |
Calculate the compensated field for all three dipole components.
| [in] | rd | Dipole position. |
| [in] | coils | Coil definitions. |
| [out] | res | Result matrix (3 x ncoil). |
| [in] | client | Pointer to FwdCompData. |
Definition at line 204 of file fwd_comp_data.cpp.
|
static |
Compose a compensation data set.
| [in] | set | CTF compensation data read from file. |
| [in] | coils | Principal coil set. |
| [in] | comp_coils | Compensation coils. |
| [in] | field | Field computation function (single dipole component). |
| [in] | vec_field | Vector field computation function (all components). |
| [in] | field_grad | Field and gradient computation function. |
| [in] | client | Client data passed to the computation functions. |
Definition at line 164 of file fwd_comp_data.cpp.
|
static |
Set up CTF compensation coils for field computations.
| [in] | set | Available compensation data. |
| [in] | coils | Main coil set. |
| [in] | comp_coils | Compensation coils. |
Definition at line 122 of file fwd_comp_data.cpp.
| void* FWDLIB::FwdCompData::client |
Client data to pass to the above functions.
Definition at line 189 of file fwd_comp_data.h.
| FwdCoilSet* FWDLIB::FwdCompData::comp_coils |
The compensation coil definitions.
Definition at line 185 of file fwd_comp_data.h.
| fwdFieldFunc FWDLIB::FwdCompData::field |
Computes the field of given direction dipole.
Definition at line 186 of file fwd_comp_data.h.
| fwdFieldGradFunc FWDLIB::FwdCompData::field_grad |
Computes the field and gradient of one dipole direction.
Definition at line 188 of file fwd_comp_data.h.
| MNELIB::MNECTFCompDataSet* FWDLIB::FwdCompData::set |
The compensation data set.
Definition at line 184 of file fwd_comp_data.h.
| fwdVecFieldFunc FWDLIB::FwdCompData::vec_field |
Computes the fields of all three dipole components.
Definition at line 187 of file fwd_comp_data.h.
| Eigen::MatrixXf FWDLIB::FwdCompData::vec_work |
The vector work area (3 x ncoil).
Definition at line 191 of file fwd_comp_data.h.
| Eigen::VectorXf FWDLIB::FwdCompData::work |
The work area.
Definition at line 190 of file fwd_comp_data.h.