#include "compute_fwd.h"#include <fiff/fiff.h>#include <fiff/fiff_coord_trans.h>#include "../fwd_coil_set.h"#include "../fwd_comp_data.h"#include <mne/mne_ctf_comp_data_set.h>#include "../fwd_eeg_sphere_model_set.h"#include "../fwd_bem_model.h"#include <mne/mne_named_matrix.h>#include <mne/mne_nearest.h>#include <mne/mne_source_space.h>#include <mne/mne_forwardsolution.h>#include <fiff/fiff_sparse_matrix.h>#include <fiff/fiff_types.h>#include <time.h>#include <Eigen/Dense>#include <algorithm>#include <QCoreApplication>#include <QFile>#include <QDir>#include <QTextStream>
Go to the source code of this file.
Macros | |
| #define | TRUE 1 |
| #define | FALSE 0 |
| #define | FAIL -1 |
| #define | OK 0 |
| #define | X_41 0 |
| #define | Y_41 1 |
| #define | Z_41 2 |
| #define | ALLOC_ICMATRIX_41(x, y) |
| #define | MALLOC_41(x, t) |
| #define | REALLOC_41(x, y, t) |
| #define | FREE_41(x) |
| #define | VEC_COPY_41(to, from) |
| #define | VEC_DOT_41(x, y) |
| #define | VEC_LEN_41(x) |
| #define | ALLOC_CMATRIX_41(x, y) |
| #define | FREE_CMATRIX_41(m) |
| #define | FREE_ICMATRIX_41(m) |
Functions | |
| float ** | mne_cmatrix_41 (int nr, int nc) |
| int ** | mne_imatrix_41 (int nr, int nc) |
| void | mne_free_cmatrix_41 (float **m) |
| void | mne_free_icmatrix_41 (int **m) |
| fiffId | get_file_id (const QString &name) |
| int | mne_check_chinfo (const QList< FiffChInfo > &chs, int nch) |
| void | write_id_old (FiffStream::SPtr &t_pStream, fiff_int_t kind, fiffId id) |
| void | write_coord_trans_old (FiffStream::SPtr &t_pStream, const FiffCoordTrans &trans) |
| void | write_coord_trans (FiffStream::SPtr &t_pStream, const FiffCoordTrans &trans) |
| void | mne_write_bad_channel_list_new (FiffStream::SPtr &t_pStream, const QStringList &t_badList) |
| void | fiff_write_float_matrix_old (FiffStream::SPtr &t_pStream, int kind, fiff_float_t **data, int rows, int cols) |
| void | fiff_write_int_matrix_old (FiffStream::SPtr &t_pStream, int kind, fiff_int_t **data, int rows, int cols) |
| int | fiff_write_float_sparse_matrix_old (FiffStream::SPtr &t_pStream, int kind, FiffSparseMatrix *mat) |
| FiffSparseMatrix * | mne_create_sparse_rcs (int nrow, int ncol, int *nnz, int **colindex, float **vals) |
| FiffSparseMatrix * | mne_pick_lower_triangle_rcs (FiffSparseMatrix *mat) |
| int | mne_write_one_source_space (FiffStream::SPtr &t_pStream, MNESourceSpace *ss, bool selected_only) |
| QString | mne_name_list_to_string_41 (const QStringList &list) |
| int | mne_write_named_matrix (FiffStream::SPtr &t_pStream, int kind, MNENamedMatrix *mat) |
| bool | fiff_put_dir (FiffStream::SPtr &t_pStream, const QList< FiffDirEntry::SPtr > &dir) |
| bool | write_solution (const QString &name, std::vector< std::unique_ptr< MNESourceSpace > > &spaces, const QString &mri_file, fiffId mri_id, const FiffCoordTrans &mri_head_t, const QString &meas_file, FiffId meas_id, const FiffCoordTrans &meg_head_t, QList< FiffChInfo > meg_chs, int nmeg, QList< FiffChInfo > eeg_chs, int neeg, int fixed_ori, int coord_frame, FiffNamedMatrix &meg_solution, FiffNamedMatrix &eeg_solution, FiffNamedMatrix &meg_solution_grad, FiffNamedMatrix &eeg_solution_grad, bool bDoGrad) |
| bool | mne_attach_env (const QString &name, const QString &command) |
| #define ALLOC_CMATRIX_41 | ( | x, | |
| y ) |
Definition at line 75 of file compute_fwd.cpp.
| #define ALLOC_ICMATRIX_41 | ( | x, | |
| y ) |
Definition at line 58 of file compute_fwd.cpp.
| #define FAIL -1 |
Definition at line 47 of file compute_fwd.cpp.
| #define FALSE 0 |
Definition at line 43 of file compute_fwd.cpp.
| #define FREE_41 | ( | x | ) |
Definition at line 63 of file compute_fwd.cpp.
| #define FREE_CMATRIX_41 | ( | m | ) |
Definition at line 76 of file compute_fwd.cpp.
| #define FREE_ICMATRIX_41 | ( | m | ) |
Definition at line 77 of file compute_fwd.cpp.
| #define MALLOC_41 | ( | x, | |
| t ) |
Definition at line 60 of file compute_fwd.cpp.
| #define OK 0 |
Definition at line 51 of file compute_fwd.cpp.
| #define REALLOC_41 | ( | x, | |
| y, | |||
| t ) |
Definition at line 61 of file compute_fwd.cpp.
| #define TRUE 1 |
Definition at line 39 of file compute_fwd.cpp.
| #define VEC_COPY_41 | ( | to, | |
| from ) |
Definition at line 65 of file compute_fwd.cpp.
| #define VEC_DOT_41 | ( | x, | |
| y ) |
| #define VEC_LEN_41 | ( | x | ) |
Definition at line 73 of file compute_fwd.cpp.
| #define X_41 0 |
Definition at line 54 of file compute_fwd.cpp.
| #define Y_41 1 |
Definition at line 55 of file compute_fwd.cpp.
| #define Z_41 2 |
Definition at line 56 of file compute_fwd.cpp.
| bool fiff_put_dir | ( | FiffStream::SPtr & | t_pStream, |
| const QList< FiffDirEntry::SPtr > & | dir ) |
Definition at line 1316 of file compute_fwd.cpp.
| void fiff_write_float_matrix_old | ( | FiffStream::SPtr & | t_pStream, |
| int | kind, | ||
| fiff_float_t ** | data, | ||
| int | rows, | ||
| int | cols ) |
Definition at line 545 of file compute_fwd.cpp.
| int fiff_write_float_sparse_matrix_old | ( | FiffStream::SPtr & | t_pStream, |
| int | kind, | ||
| FiffSparseMatrix * | mat ) |
Definition at line 693 of file compute_fwd.cpp.
| void fiff_write_int_matrix_old | ( | FiffStream::SPtr & | t_pStream, |
| int | kind, | ||
| fiff_int_t ** | data, | ||
| int | rows, | ||
| int | cols ) |
Definition at line 619 of file compute_fwd.cpp.
| fiffId get_file_id | ( | const QString & | name | ) |
< File version.
< Unique machine ID.
< Time of the ID creation.
Definition at line 145 of file compute_fwd.cpp.
| bool mne_attach_env | ( | const QString & | name, |
| const QString & | command ) |
Definition at line 1574 of file compute_fwd.cpp.
| int mne_check_chinfo | ( | const QList< FiffChInfo > & | chs, |
| int | nch ) |
Definition at line 370 of file compute_fwd.cpp.
| float ** mne_cmatrix_41 | ( | int | nr, |
| int | nc ) |
Definition at line 96 of file compute_fwd.cpp.
| FiffSparseMatrix * mne_create_sparse_rcs | ( | int | nrow, |
| int | ncol, | ||
| int * | nnz, | ||
| int ** | colindex, | ||
| float ** | vals ) |
Definition at line 851 of file compute_fwd.cpp.
| void mne_free_cmatrix_41 | ( | float ** | m | ) |
Definition at line 128 of file compute_fwd.cpp.
| void mne_free_icmatrix_41 | ( | int ** | m | ) |
Definition at line 136 of file compute_fwd.cpp.
| int ** mne_imatrix_41 | ( | int | nr, |
| int | nc ) |
Definition at line 113 of file compute_fwd.cpp.
| QString mne_name_list_to_string_41 | ( | const QStringList & | list | ) |
Definition at line 1270 of file compute_fwd.cpp.
| FiffSparseMatrix * mne_pick_lower_triangle_rcs | ( | FiffSparseMatrix * | mat | ) |
Definition at line 907 of file compute_fwd.cpp.
| void mne_write_bad_channel_list_new | ( | FiffStream::SPtr & | t_pStream, |
| const QStringList & | t_badList ) |
Definition at line 505 of file compute_fwd.cpp.
| int mne_write_named_matrix | ( | FiffStream::SPtr & | t_pStream, |
| int | kind, | ||
| MNENamedMatrix * | mat ) |
Definition at line 1288 of file compute_fwd.cpp.
| int mne_write_one_source_space | ( | FiffStream::SPtr & | t_pStream, |
| MNESourceSpace * | ss, | ||
| bool | selected_only ) |
Definition at line 1084 of file compute_fwd.cpp.
| void write_coord_trans | ( | FiffStream::SPtr & | t_pStream, |
| const FiffCoordTrans & | trans ) |
Definition at line 485 of file compute_fwd.cpp.
| void write_coord_trans_old | ( | FiffStream::SPtr & | t_pStream, |
| const FiffCoordTrans & | trans ) |
Definition at line 441 of file compute_fwd.cpp.
| void write_id_old | ( | FiffStream::SPtr & | t_pStream, |
| fiff_int_t | kind, | ||
| fiffId | id ) |
Definition at line 396 of file compute_fwd.cpp.
| bool write_solution | ( | const QString & | name, |
| std::vector< std::unique_ptr< MNESourceSpace > > & | spaces, | ||
| const QString & | mri_file, | ||
| fiffId | mri_id, | ||
| const FiffCoordTrans & | mri_head_t, | ||
| const QString & | meas_file, | ||
| FiffId | meas_id, | ||
| const FiffCoordTrans & | meg_head_t, | ||
| QList< FiffChInfo > | meg_chs, | ||
| int | nmeg, | ||
| QList< FiffChInfo > | eeg_chs, | ||
| int | neeg, | ||
| int | fixed_ori, | ||
| int | coord_frame, | ||
| FiffNamedMatrix & | meg_solution, | ||
| FiffNamedMatrix & | eeg_solution, | ||
| FiffNamedMatrix & | meg_solution_grad, | ||
| FiffNamedMatrix & | eeg_solution_grad, | ||
| bool | bDoGrad ) |
Definition at line 1374 of file compute_fwd.cpp.