Fine calibration data for SSS. More...
#include <fine_calibration.h>
Public Member Functions | |
| FineCalibration ()=default | |
| bool | write (const QString &sPath) const |
| Write fine calibration to a .dat file. | |
| const QList< FineCalEntry > & | entries () const |
| Get the calibration entries. | |
| int | size () const |
| Get the number of entries. | |
| bool | isEmpty () const |
| Check if empty. | |
| bool | findEntry (int chNumber, FineCalEntry &entry) const |
| Find entry by channel number. | |
| void | addEntry (const FineCalEntry &entry) |
| Add an entry. | |
| Eigen::VectorXd | gainVector () const |
| Build gain correction diagonal matrix for MEG channels. | |
| Eigen::MatrixXd | imbalanceMatrix () const |
| Build imbalance matrix. | |
Static Public Member Functions | |
| static FineCalibration | read (const QString &sPath) |
| Read a fine calibration file (.dat format). | |
Fine calibration data for SSS.
A fine calibration file (.dat) contains one line per MEG sensor with: channel_number gain imbalance_x imbalance_y imbalance_z
Usage:
Definition at line 70 of file fine_calibration.h.
|
default |
|
inline |
Add an entry.
Definition at line 132 of file fine_calibration.h.
|
inline |
Get the calibration entries.
Definition at line 103 of file fine_calibration.h.
| bool FineCalibration::findEntry | ( | int | chNumber, |
| FineCalEntry & | entry ) const |
Find entry by channel number.
| [in] | chNumber | Channel number to find. |
| [out] | entry | Found entry (if any). |
Definition at line 110 of file fine_calibration.cpp.
| VectorXd FineCalibration::gainVector | ( | ) | const |
Build gain correction diagonal matrix for MEG channels.
Returns a diagonal matrix where each diagonal element is the gain factor for the corresponding MEG channel (in the order of m_entries).
Definition at line 123 of file fine_calibration.cpp.
| MatrixXd FineCalibration::imbalanceMatrix | ( | ) | const |
Build imbalance matrix.
Returns a matrix of cross-talk imbalance vectors (n_entries × 3).
Definition at line 134 of file fine_calibration.cpp.
|
inline |
Check if empty.
Definition at line 115 of file fine_calibration.h.
|
static |
Read a fine calibration file (.dat format).
Expected format: whitespace-separated columns per line: channel_number gain imbalance_x imbalance_y imbalance_z Lines starting with '#' are comments.
| [in] | sPath | Path to .dat file. |
Definition at line 39 of file fine_calibration.cpp.
|
inline |
Get the number of entries.
Definition at line 109 of file fine_calibration.h.
| bool FineCalibration::write | ( | const QString & | sPath | ) | const |
Write fine calibration to a .dat file.
| [in] | sPath | Output file path. |
Definition at line 84 of file fine_calibration.cpp.