Skip to main content

MNEMghTag

Namespace: MNELIB  ·  Library: MNE Library

#include <mne/mne_mgh_tag.h>

class MNELIB::MNEMghTag

Single tag entry in a FreeSurfer MGH/MGZ file header.

MGH files can carry optional typed metadata tags in the file footer. Each tag has an integer identifier, a byte length, and a raw payload.


Public Methods​

MNEMghTag()​

Constructs an empty MNEMghTag.


~MNEMghTag()​

Destructor.


Example​

No example of its own: Raw FreeSurfer MGH tag record kept by the surface reader inside MNESourceSpace; never constructed by callers.

It is exercised by:

src/examples/ex_mne_api/main.cpp
// A FreeSurfer surface with its curvature and the volume geometry from the file footer
const auto white = MNESourceSpace::load_surface(data + "/subjects/sample/surf/lh.white", data + "/subjects/sample/surf/lh.curv");
const MNEVolGeom& geometry = *white->vol_geom; // sizes and centre converted to metres

From ex_mne_api.

Authors of this file​