Skip to main content

InvSensorSet

Namespace: INVLIB  ·  Library: Inverse Library

#include <inv/inv_sensor_set.h>

class INVLIB::InvSensorSet

Stores MEG sensor geometry (positions, orientations, weights, coil count) for a single sensor type.

src/examples/ex_inv_hpi/main.cpp
InvSensorSetCreator creator; // reads resources/general/coilDefinitions/coil_def.dat
QList<FiffChInfo> megChannels;
for (const FiffChInfo& ch : info->chs) {
if (ch.kind == FIFFV_MEG_CH)
megChannels << ch;
}
const InvSensorSet sensors = creator.updateSensorSet(megChannels, Accuracy::high); // integration points per coil

Public Methods​

InvSensorSet()​

Default Constructor.


InvSensorSet(pFwdCoilSet)​

InvSensorSet that yiealds sensor position, orientation and weights for geometric averaging.

Parameters:

  • pFwdCoilSet : const QSharedPointer<FwdCoilSet> The FwdCoilSet to extract the data from.

np()​


ncoils()​


ez(iSensor)​


ez()​


r0(iSensor)​


r0()​


rmag(iSensor)​


rmag()​


cosmag(iSensor)​


cosmag()​


tra(iSensor)​


tra()​


w(iSensor)​


w()​


operator==(b)​


operator!=(b)​


Example​

Used in examples​

ex_inv_hpi​

Inverse library: continuous head position (HPI) fitting.

src/examples/ex_inv_hpi/main.cpp, line 101
const InvSensorSet sensors = creator.updateSensorSet(megChannels, Accuracy::high); // integration points per coil
ok &= expect(sensors.ncoils() == 306 && sensors.np() == 8 && sensors.rmag().rows() == 306 * 8, "InvSensorSetCreator/InvSensorSet: 306 MEG sensors with 8 integration points each");

Authors of this file​