Volume source estimate: scalar values at voxel locations. More...
#include <inv_volume_source_estimate.h>
Public Types | |
| typedef QSharedPointer< InvVolumeSourceEstimate > | SPtr |
| typedef QSharedPointer< const InvVolumeSourceEstimate > | ConstSPtr |
| Public Types inherited from INVLIB::InvSourceEstimate | |
| typedef QSharedPointer< InvSourceEstimate > | SPtr |
| typedef QSharedPointer< const InvSourceEstimate > | ConstSPtr |
Public Member Functions | |
| InvVolumeSourceEstimate () | |
| InvVolumeSourceEstimate (const Eigen::MatrixXd &p_sol, const Eigen::VectorXi &p_vertices, float p_tmin, float p_tstep) | |
| void | setShape (const QVector< int > &shape) |
| const QVector< int > & | shape () const |
| bool | hasShape () const |
| Eigen::VectorXd | toVolume (int timeIdx) const |
| Eigen::Vector3d | centreOfMass (int timeIdx) const |
| Public Member Functions inherited from INVLIB::InvSourceEstimate | |
| InvSourceEstimate () | |
| InvSourceEstimate (const Eigen::MatrixXd &p_sol, const Eigen::VectorXi &p_vertices, float p_tmin, float p_tstep) | |
| InvSourceEstimate (const InvSourceEstimate &p_SourceEstimate) | |
| InvSourceEstimate (QIODevice &p_IODevice) | |
| void | clear () |
| InvSourceEstimate | reduce (qint32 start, qint32 n) |
| bool | write (QIODevice &p_IODevice) |
| void | write_w (const QString &path) const |
| bool | isEmpty () const |
| InvSourceEstimate & | operator= (const InvSourceEstimate &rhs) |
| int | samples () const |
| Eigen::VectorXi | getIndicesByLabel (const QList< FSLIB::FsLabel > &lPickedLabels, bool bIsClustered) const |
| bool | hasGridData () const |
| bool | hasCouplings () const |
| bool | hasFocalDipoles () const |
| bool | hasPositions () const |
| bool | hasConnectivity () const |
Additional Inherited Members | |
| Static Public Member Functions inherited from INVLIB::InvSourceEstimate | |
| static bool | read (QIODevice &p_IODevice, InvSourceEstimate &p_stc) |
| static InvSourceEstimate | read_w (const QString &path) |
| Public Attributes inherited from INVLIB::InvSourceEstimate | |
| Eigen::MatrixXd | data |
| Eigen::VectorXi | vertices |
| Eigen::RowVectorXf | times |
| float | tmin |
| float | tstep |
| InvEstimateMethod | method |
| InvSourceSpaceType | sourceSpaceType |
| InvOrientationType | orientationType |
| Eigen::MatrixX3f | positions |
| std::vector< InvSourceCoupling > | couplings |
| std::vector< InvFocalDipole > | focalDipoles |
| std::vector< InvConnectivity > | connectivity |
Volume source estimate: scalar values at voxel locations.
Extends InvSourceEstimate with grid shape information to allow reshaping the flat data into a 3D volume.
Definition at line 51 of file inv_volume_source_estimate.h.

| typedef QSharedPointer<const InvVolumeSourceEstimate> INVLIB::InvVolumeSourceEstimate::ConstSPtr |
Definition at line 55 of file inv_volume_source_estimate.h.
| typedef QSharedPointer<InvVolumeSourceEstimate> INVLIB::InvVolumeSourceEstimate::SPtr |
Definition at line 54 of file inv_volume_source_estimate.h.
| InvVolumeSourceEstimate::InvVolumeSourceEstimate | ( | ) |
Definition at line 35 of file inv_volume_source_estimate.cpp.
| INVLIB::InvVolumeSourceEstimate::InvVolumeSourceEstimate | ( | const Eigen::MatrixXd & | p_sol, |
| const Eigen::VectorXi & | p_vertices, | ||
| float | p_tmin, | ||
| float | p_tstep ) |
Construct from data and vertices.
| [in] | p_sol | Data (n_voxels x n_times). |
| [in] | p_vertices | Voxel indices. |
| [in] | p_tmin | Start time. |
| [in] | p_tstep | Time step. |
| Vector3d InvVolumeSourceEstimate::centreOfMass | ( | int | timeIdx | ) | const |
Compute the centre of mass of the activity at a given time point.
| [in] | timeIdx | Time sample index. |
Definition at line 80 of file inv_volume_source_estimate.cpp.
|
inline |
Check whether the grid shape has been set.
Definition at line 91 of file inv_volume_source_estimate.h.
| void InvVolumeSourceEstimate::setShape | ( | const QVector< int > & | shape | ) |
Set the 3D grid shape (nx, ny, nz) for volume reshaping.
| [in] | shape | Grid dimensions {nx, ny, nz}. |
Definition at line 53 of file inv_volume_source_estimate.cpp.
|
inline |
Get the 3D grid shape.
Definition at line 85 of file inv_volume_source_estimate.h.
| VectorXd InvVolumeSourceEstimate::toVolume | ( | int | timeIdx | ) | const |
Extract a 3D volume for a given time point, filling the grid with zeros where no source is active.
| [in] | timeIdx | Time sample index. |
Definition at line 61 of file inv_volume_source_estimate.cpp.