FreeSurfer surface mesh.
More...
#include <surface.h>
|
static bool | read (const QString &subject_id, qint32 hemi, const QString &surf, const QString &subjects_dir, Surface &p_Surface, bool p_bLoadCurvature=true) |
|
static bool | read (const QString &path, qint32 hemi, const QString &surf, Surface &p_Surface, bool p_bLoadCurvature=true) |
|
static bool | read (const QString &p_sFileName, Surface &p_Surface, bool p_bLoadCurvature=true) |
|
static VectorXf | read_curv (const QString &p_sFileName) |
|
static MatrixX3f | compute_normals (const MatrixX3f &rr, const MatrixX3i &tris) |
|
FreeSurfer surface mesh.
A FreeSurfer surface mesh in triangular format
Definition at line 92 of file surface.h.
Surface::Surface |
( |
const QString & |
p_sFile | ) |
|
|
explicit |
Construts the surface by reading it of the given file.
- Parameters
-
[in] | p_sFile | Surface file name with path |
Definition at line 84 of file surface.cpp.
Surface::Surface |
( |
const QString & |
subject_id, |
|
|
qint32 |
hemi, |
|
|
const QString & |
surf, |
|
|
const QString & |
subjects_dir |
|
) |
| |
|
explicit |
Construts the surface by reading it of the given file.
- Parameters
-
[in] | subject_id | Name of subject |
[in] | hemi | Which hemisphere to load {0 -> lh, 1 -> rh} |
[in] | surf | Name of the surface to load (eg. inflated, orig ...) |
[in] | subjects_dir | True if the curvature should be read (optional, default = true) |
Definition at line 97 of file surface.cpp.
Surface::Surface |
( |
const QString & |
path, |
|
|
qint32 |
hemi, |
|
|
const QString & |
surf |
|
) |
| |
|
explicit |
Construts the surface by reading it of the given file.
- Parameters
-
[in] | path | path to surface directory |
[in] | hemi | Which hemisphere to load {0 -> lh, 1 -> rh} |
[in] | surf | Name of the surface to load (eg. inflated, orig ...) |
- Returns
- true if read sucessful, false otherwise
Definition at line 110 of file surface.cpp.
MatrixX3f Surface::compute_normals |
( |
const MatrixX3f & |
rr, |
|
|
const MatrixX3i & |
tris |
|
) |
| |
|
static |
Efficiently compute vertex normals for triangulated surface
- Parameters
-
[in] | rr | Vertex coordinates in meters |
[out] | tris | The triangle descriptions |
- Returns
- The computed normals
Definition at line 145 of file surface.cpp.
const VectorXf & FSLIB::Surface::curv |
( |
| ) |
const |
|
inline |
FreeSurfer curvature
- Returns
- the FreeSurfer curvature data
Definition at line 352 of file surface.h.
qint32 FSLIB::Surface::hemi |
( |
| ) |
const |
|
inline |
Returns the hemisphere id (0 = lh; 1 = rh)
- Returns
- hemisphere id
Definition at line 304 of file surface.h.
bool FSLIB::Surface::isEmpty |
( |
| ) |
const |
|
inline |
Returns whether Surface is empty.
- Returns
- true if is empty, false otherwise
Definition at line 312 of file surface.h.
const MatrixX3f & FSLIB::Surface::nn |
( |
| ) |
const |
|
inline |
Normalized surface normals for each vertex
- Returns
- surface normals
Definition at line 344 of file surface.h.
const Vector3f & FSLIB::Surface::offset |
( |
| ) |
const |
|
inline |
Vector offset
- Returns
- the offset vector
Definition at line 360 of file surface.h.
Vector3f & FSLIB::Surface::offset |
( |
| ) |
|
|
inline |
Vector offset
- Returns
- the offset vector
Definition at line 368 of file surface.h.
bool Surface::read |
( |
const QString & |
subject_id, |
|
|
qint32 |
hemi, |
|
|
const QString & |
surf, |
|
|
const QString & |
subjects_dir, |
|
|
Surface & |
p_Surface, |
|
|
bool |
p_bLoadCurvature = true |
|
) |
| |
|
static |
mne_read_surface
Reads a FreeSurfer surface file
- Parameters
-
[in] | subject_id | Name of subject |
[in] | hemi | Which hemisphere to load {0 -> lh, 1 -> rh} |
[in] | surf | Name of the surface to load (eg. inflated, orig ...) |
[in] | subjects_dir | Subjects directory |
[out] | p_Surface | The read surface |
[in] | p_bLoadCurvature | True if the curvature should be read (optional, default = true) |
- Returns
- true if read sucessful, false otherwise
Definition at line 197 of file surface.cpp.
bool Surface::read |
( |
const QString & |
path, |
|
|
qint32 |
hemi, |
|
|
const QString & |
surf, |
|
|
Surface & |
p_Surface, |
|
|
bool |
p_bLoadCurvature = true |
|
) |
| |
|
static |
mne_read_surface
Reads a FreeSurfer surface file
- Parameters
-
[in] | path | path to surface directory |
[in] | hemi | Which hemisphere to load {0 -> lh, 1 -> rh} |
[in] | surf | Name of the surface to load (eg. inflated, orig ...) |
[out] | p_Surface | The read surface |
[in] | p_bLoadCurvature | True if the curvature should be read (optional, default = true) |
- Returns
- true if read sucessful, false otherwise
Definition at line 210 of file surface.cpp.
bool Surface::read |
( |
const QString & |
p_sFileName, |
|
|
Surface & |
p_Surface, |
|
|
bool |
p_bLoadCurvature = true |
|
) |
| |
|
static |
mne_read_surface
Reads a FreeSurfer surface file
- Parameters
-
[in] | p_sFileName | The file to read |
[out] | p_Surface | The read surface |
[in] | p_bLoadCurvature | True if the curvature should be read (optional, default = true) |
- Returns
- true if read sucessful, false otherwise
Definition at line 223 of file surface.cpp.
VectorXf Surface::read_curv |
( |
const QString & |
p_sFileName | ) |
|
|
static |
reads a binary curvature file into a vector
- Returns
- the read curvature
Definition at line 425 of file surface.cpp.
const MatrixX3f & FSLIB::Surface::rr |
( |
| ) |
const |
|
inline |
Coordinates of vertices (rr)
- Returns
- coordinates of vertices
Definition at line 328 of file surface.h.
QString FSLIB::Surface::surf |
( |
| ) |
const |
|
inline |
Loaded surface (eg. inflated, orig ...)
- Returns
- the surface
Definition at line 320 of file surface.h.
const MatrixX3i & FSLIB::Surface::tris |
( |
| ) |
const |
|
inline |
The triangle descriptions
- Returns
- triangle descriptions
Definition at line 336 of file surface.h.
The documentation for this class was generated from the following files:
- D:/Users/Christoph/GitHub/mne-cpp/MNE/fs/surface.h
- D:/Users/Christoph/GitHub/mne-cpp/MNE/fs/surface.cpp