v2.0.0
Loading...
Searching...
No Matches
inv_source_estimate_io.h
Go to the documentation of this file.
1//=============================================================================================================
21
22#ifndef INV_SOURCE_ESTIMATE_IO_H
23#define INV_SOURCE_ESTIMATE_IO_H
24
25//=============================================================================================================
26// INCLUDES
27//=============================================================================================================
28
29#include "inv_global.h"
30#include "inv_source_estimate.h"
31
32//=============================================================================================================
33// QT INCLUDES
34//=============================================================================================================
35
36#include <QString>
37
38//=============================================================================================================
39// DEFINE NAMESPACE INVLIB
40//=============================================================================================================
41
42namespace INVLIB
43{
44
45//=============================================================================================================
50{
51public:
52 //=========================================================================================================
65 static bool writeCsv(const InvSourceEstimate& stc,
66 const QString& sPath,
67 char cDelim = ',');
68
69 //=========================================================================================================
78 static InvSourceEstimate readCsv(const QString& sPath,
79 char cDelim = ',');
80
81 //=========================================================================================================
92 static bool writeMatrix(const InvSourceEstimate& stc,
93 const QString& sPath);
94};
95
96} // namespace INVLIB
97
98#endif // INV_SOURCE_ESTIMATE_IO_H
InvSourceEstimate value type — central source-space data container produced by every INVLIB inverse s...
INVLIB library export/import macros, build-info accessors, and namespace docstring for the inverse-so...
#define INVSHARED_EXPORT
Definition inv_global.h:38
Inverse source estimation (MNE, dSPM, sLORETA, dipole fitting).
Source-space inverse-solution container with dense grid plus optional focal-dipole,...
Extended I/O methods for InvSourceEstimate.
static InvSourceEstimate readCsv(const QString &sPath, char cDelim=',')
Read source estimate from CSV format.
static bool writeCsv(const InvSourceEstimate &stc, const QString &sPath, char cDelim=',')
Export source estimate to CSV format.
static bool writeMatrix(const InvSourceEstimate &stc, const QString &sPath)
Export source estimate as a tab-separated matrix for easy import.