|
libfs
Header-only C++11 library for accessing FreeSurfer neuroimaging data
|
#include <libfs.h>

Public Member Functions | |
| Label () | |
| Default constructor for a label. | |
| Label (std::vector< int > vertices, std::vector< float > values) | |
| Construct a Label from the given vertices / voxel numbers and values. | |
| Label (std::vector< int > vertices) | |
| Construct a Label from the given vertices / voxel numbers. | |
| std::vector< bool > | vert_in_label (size_t surface_num_verts) const |
| Compute for each vertex of the surface whether it is inside the label. | |
| size_t | num_entries () const |
| Return the number of entries (vertices/voxels) in this label. | |
Models a FreeSurfer label. Can be a surface or volume label. A label contains entries for a subset of the vertices of a mesh (or the voxels of a volume). For a surface label, the 'vertex' field contains a vertex index, the coord_* fields may contain the vertex coordinates, and the value field may contain some per-vertex descriptor or analysis result, like a p-value. For a volume label, the 'vertex' field contains a running number, the coord_* fields contain (as floats) the voxel R,A,S indices, and the value field may contain some per-voxel descriptor or analysis result, like a p-value. Note: The variable names herre assume this is a surface label, do not let that confuse you when working with volume labels.