Information about raw data in a FIFF file. More...
#include <mne_raw_info.h>
Public Types | |
| typedef QSharedPointer< MNERawInfo > | SPtr |
| typedef QSharedPointer< const MNERawInfo > | ConstSPtr |
Public Member Functions | |
| MNERawInfo () | |
| Constructs a default MNERawInfo. | |
| ~MNERawInfo () | |
| Destroys the MNERawInfo and releases owned resources. | |
Static Public Member Functions | |
| static FIFFLIB::FiffDirNode::SPtr | find_meas (const FIFFLIB::FiffDirNode::SPtr &node) |
| static FIFFLIB::FiffDirNode::SPtr | find_meas_info (const FIFFLIB::FiffDirNode::SPtr &node) |
| static FIFFLIB::FiffDirNode::SPtr | find_raw (const FIFFLIB::FiffDirNode::SPtr &node) |
| static FIFFLIB::FiffDirNode::SPtr | find_maxshield (const FIFFLIB::FiffDirNode::SPtr &node) |
| static int | get_meas_info (FIFFLIB::FiffStream::SPtr &stream, FIFFLIB::FiffDirNode::SPtr &node, std::unique_ptr< FIFFLIB::FiffId > &id, int *nchan, float *sfreq, float *highpass, float *lowpass, QList< FIFFLIB::FiffChInfo > &chp, FIFFLIB::FiffCoordTrans &trans, FIFFLIB::FiffTime **start_time) |
| static int | load (const QString &name, int allow_maxshield, std::unique_ptr< MNERawInfo > &infop) |
Public Attributes | |
| QString | filename |
| std::unique_ptr< FIFFLIB::FiffId > | id |
| int | nchan |
| QList< FIFFLIB::FiffChInfo > | chInfo |
| int | coord_frame |
| std::unique_ptr< FIFFLIB::FiffCoordTrans > | trans |
| float | sfreq |
| float | lowpass |
| float | highpass |
| FIFFLIB::FiffTime | start_time |
| int | buf_size |
| int | maxshield_data |
| QList< FIFFLIB::FiffDirEntry::SPtr > | rawDir |
| int | ndir |
Information about raw data in a FIFF file.
Definition at line 85 of file mne_raw_info.h.
| typedef QSharedPointer<const MNERawInfo> MNELIB::MNERawInfo::ConstSPtr |
Const shared pointer type for MNERawInfo.
Definition at line 89 of file mne_raw_info.h.
| typedef QSharedPointer<MNERawInfo> MNELIB::MNERawInfo::SPtr |
Shared pointer type for MNERawInfo.
Definition at line 88 of file mne_raw_info.h.
| MNERawInfo::MNERawInfo | ( | ) |
Constructs a default MNERawInfo.
Definition at line 61 of file mne_raw_info.cpp.
| MNERawInfo::~MNERawInfo | ( | ) |
Destroys the MNERawInfo and releases owned resources.
Definition at line 67 of file mne_raw_info.cpp.
|
static |
Finds the MaxShield raw data block in the FIFF directory tree.
Searches the tree under the given node for a FIFFB_SMSH_RAW_DATA block, which contains SSS/MaxShield processed raw data.
| [in] | node | Root node of the subtree to search. |
Definition at line 124 of file mne_raw_info.cpp.
|
static |
Finds the nearest FIFFB_MEAS parent node in the FIFF directory tree.
Walks up the tree from the given node by following parent pointers until a node of type FIFFB_MEAS is found.
| [in] | node | Starting node from which to search upward. |
Definition at line 73 of file mne_raw_info.cpp.
|
static |
Finds the FIFFB_MEAS_INFO child node within the nearest FIFFB_MEAS block.
First locates the enclosing FIFFB_MEAS node by walking up the tree from the given node, then searches its immediate children for a node of type FIFFB_MEAS_INFO.
| [in] | node | Starting node from which to search. |
Definition at line 88 of file mne_raw_info.cpp.
|
static |
Finds the raw data block in the FIFF directory tree.
Searches the tree under the given node for a FIFFB_RAW_DATA block. If none is found, falls back to searching for a FIFFB_CONTINUOUS_DATA block.
| [in] | node | Root node of the subtree to search. |
Definition at line 107 of file mne_raw_info.cpp.
|
static |
Reads measurement information from the nearest FIFFB_MEAS_INFO parent of a node.
Extracts channel information, sampling frequency, filter parameters, coordinate transformation (device-to-head), and measurement ID from the FIFF file. Lowpass and highpass default to sfreq/2 and 0 respectively if not explicitly present in the file.
| [in] | stream | Open FIFF stream to read tags from. |
| [in] | node | Starting directory node (typically the raw data node). |
| [out] | id | Measurement ID (managed via unique_ptr). Reset if absent. |
| [out] | nchan | Number of channels. |
| [out] | sfreq | Sampling frequency in Hz. |
| [out] | highpass | Highpass filter cutoff frequency in Hz. |
| [out] | lowpass | Lowpass filter cutoff frequency in Hz. |
| [out] | chp | List of channel information structures, one per channel. |
| [out] | trans | Device-to-head coordinate transformation. |
| [out] | start_time | Measurement start time (NULL if absent). |
Definition at line 137 of file mne_raw_info.cpp.
|
static |
Loads raw data information from a FIFF file.
Opens the specified FIFF file, locates the raw data block (or MaxShield data block if allowed and no standard raw data is found), reads the measurement information, determines the buffer size from the first data buffer tag, and assembles a complete MNERawInfo structure.
| [in] | name | Path to the FIFF file to load. |
| [in] | allow_maxshield | If non-zero, fall back to MaxShield (SSS) data when no standard raw data block is found. |
| [out] | infop | Pointer to receive the newly allocated MNERawInfo structure. Only valid on success. |
Definition at line 301 of file mne_raw_info.cpp.
| int MNELIB::MNERawInfo::buf_size |
Buffer size in samples.
Definition at line 219 of file mne_raw_info.h.
| QList<FIFFLIB::FiffChInfo> MNELIB::MNERawInfo::chInfo |
Channel info data .
Definition at line 210 of file mne_raw_info.h.
| int MNELIB::MNERawInfo::coord_frame |
Which coordinate frame are the positions defined in?
Definition at line 211 of file mne_raw_info.h.
| QString MNELIB::MNERawInfo::filename |
The name of the file this comes from.
Definition at line 207 of file mne_raw_info.h.
| float MNELIB::MNERawInfo::highpass |
Highpass filter setting.
Definition at line 217 of file mne_raw_info.h.
| std::unique_ptr<FIFFLIB::FiffId> MNELIB::MNERawInfo::id |
Measurement id from the file.
Definition at line 208 of file mne_raw_info.h.
| float MNELIB::MNERawInfo::lowpass |
Lowpass filter setting.
Definition at line 216 of file mne_raw_info.h.
| int MNELIB::MNERawInfo::maxshield_data |
Are these unprocessed MaxShield data.
Definition at line 220 of file mne_raw_info.h.
| int MNELIB::MNERawInfo::nchan |
Number of channels.
Definition at line 209 of file mne_raw_info.h.
| int MNELIB::MNERawInfo::ndir |
Number of tags in the above directory.
Definition at line 222 of file mne_raw_info.h.
| QList<FIFFLIB::FiffDirEntry::SPtr> MNELIB::MNERawInfo::rawDir |
Directory of raw data tags (FIFF_DATA_BUFFER, FIFF_DATA_SKIP, etc.).
Definition at line 221 of file mne_raw_info.h.
| float MNELIB::MNERawInfo::sfreq |
Sampling frequency.
Definition at line 215 of file mne_raw_info.h.
| FIFFLIB::FiffTime MNELIB::MNERawInfo::start_time |
Acquisition start time (from meas date or block id).
Definition at line 218 of file mne_raw_info.h.
| std::unique_ptr<FIFFLIB::FiffCoordTrans> MNELIB::MNERawInfo::trans |
Coordinate transformation FIFF_COORD_HEAD <-> FIFF_COORD_DEVICE.
Definition at line 214 of file mne_raw_info.h.