37#ifndef MNESOURCESPACE_H
38#define MNESOURCESPACE_H
79 using SPtr = std::shared_ptr<MNESourceSpace>;
80 using ConstSPtr = std::shared_ptr<const MNESourceSpace>;
176 static std::unique_ptr<MNESourceSpace>
load_surface(
const QString& surf_file,
177 const QString& curv_file);
189 static std::unique_ptr<MNESourceSpace>
load_surface_geom(
const QString& surf_file,
190 const QString& curv_file,
192 int check_too_many_neighbors);
220 std::vector<std::unique_ptr<MNESourceSpace>>& spaces,
221 QTextStream *filtered);
226 const QString& bemfile,
228 std::vector<std::unique_ptr<MNESourceSpace>>& spaces,
229 QTextStream *filtered,
233 std::vector<std::unique_ptr<MNESourceSpace>>& spaces);
237 std::vector<std::unique_ptr<MNESourceSpace>>& spaces);
240 const QStringList& labels,
244 Eigen::VectorXi& sel);
mne library export/import macros.
MNE Surface or Volume (MNESurfaceOrVolume) class declaration.
Core MNE data structures (source spaces, source estimates, hemispheres).
Coordinate transformation description.
Thread-local arguments for parallel raw data filtering (channel range, filter kernel,...
virtual MNESourceSpace::SPtr clone() const
static std::unique_ptr< MNESourceSpace > load_surface_geom(const QString &surf_file, const QString &curv_file, int add_geometry, int check_too_many_neighbors)
static std::unique_ptr< MNESourceSpace > load_surface(const QString &surf_file, const QString &curv_file)
void rearrange_source_space()
qint32 find_source_space_hemi() const
std::shared_ptr< MNESourceSpace > SPtr
static int restrict_sources_to_labels(std::vector< std::unique_ptr< MNESourceSpace > > &spaces, const QStringList &labels, int nlabel)
static int filter_source_spaces(const MNESurface &surf, float limit, const FIFFLIB::FiffCoordTrans &mri_head_t, std::vector< std::unique_ptr< MNESourceSpace > > &spaces, QTextStream *filtered)
static int read_source_spaces(const QString &name, std::vector< std::unique_ptr< MNESourceSpace > > &spaces)
static std::unique_ptr< MNESourceSpace > create_source_space(int np)
static void filter_source_space(FilterThreadArg *arg)
static MNESourceSpace * make_volume_source_space(const MNESurface &surf, float grid, float exclude, float mindist)
std::shared_ptr< const MNESourceSpace > ConstSPtr
int transform_source_space(const FIFFLIB::FiffCoordTrans &t)
static int read_label(const QString &label, Eigen::VectorXi &sel)
static int transform_source_spaces_to(int coord_frame, const FIFFLIB::FiffCoordTrans &t, std::vector< std::unique_ptr< MNESourceSpace > > &spaces)
void update_inuse(Eigen::VectorXi new_inuse)
void enable_all_sources()
MNESurfaceOrVolume()
Constructs the MNE Surface or Volume.