v2.0.0
Loading...
Searching...
No Matches
inv_source_estimate_token.h
Go to the documentation of this file.
1//=============================================================================================================
22
23#ifndef INV_SOURCE_ESTIMATE_TOKEN_H
24#define INV_SOURCE_ESTIMATE_TOKEN_H
25
26//=============================================================================================================
27// INCLUDES
28//=============================================================================================================
29
30#include "inv_global.h"
31#include "inv_token.h"
32
33#include <vector>
34
35//=============================================================================================================
36// FORWARD DECLARATIONS
37//=============================================================================================================
38
39namespace INVLIB
40{
42}
43
44//=============================================================================================================
45// DEFINE NAMESPACE INVLIB
46//=============================================================================================================
47
48namespace INVLIB
49{
50
51//=============================================================================================================
69INVSHARED_EXPORT std::vector<InvToken> tokenize(const InvSourceEstimate& estimate,
70 const InvTokenizeOptions& options = InvTokenizeOptions());
71
72//=============================================================================================================
86INVSHARED_EXPORT InvSourceEstimate fromTokens(const std::vector<InvToken>& tokens);
87
88} // NAMESPACE INVLIB
89
90#endif // INV_SOURCE_ESTIMATE_TOKEN_H
Token vocabulary, value-carrier struct and tokenisation options for the foundation-model serialisatio...
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).
InvSourceEstimate fromTokens(const std::vector< InvToken > &tokens)
Reconstruct an InvSourceEstimate from a token sequence.
std::vector< InvToken > tokenize(const InvSourceEstimate &estimate, const InvTokenizeOptions &options)
Serialise an InvSourceEstimate into a flat token sequence.
Source-space inverse-solution container with dense grid plus optional focal-dipole,...
Tokenization options controlling layer inclusion and sub-sampling.
Definition inv_token.h:206