forked from MaxvandenBoom/matmef
-
Notifications
You must be signed in to change notification settings - Fork 0
/
matmef_mapping.h
55 lines (47 loc) · 2.64 KB
/
matmef_mapping.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef MATMEF_MAPPING_
#define MATMEF_MAPPING_
/**
* @file - headers
* MEF 3.0 Library Matlab Wrapper
* Functions to map MEF3 objects and structures to Matlab structures
*
* Copyright 2020, Max van den Boom (Multimodal Neuroimaging Lab, Mayo Clinic, Rochester MN)
* Adapted from PyMef (by Jan Cimbalnik, Matt Stead, Ben Brinkmann, and Dan Crepeau)
*
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include "mex.h"
#include "meflib/meflib/meflib.h"
mxArray *create_init_matlab_uh();
mxArray *create_init_matlab_tmd2();
mxArray *create_init_matlab_vmd2();
mxArray *create_init_matlab_md3();
void map_mef3_segment_tostruct(SEGMENT *segment, si1 map_indices_flag, mxArray *mat_segment, int mat_index);
mxArray *map_mef3_segment(SEGMENT *segment, si1 map_indices_flag);
void map_mef3_channel_tostruct(CHANNEL *channel, si1 map_indices_flag, mxArray *mat_channel, int mat_index);
mxArray *map_mef3_channel(CHANNEL *channel, si1 map_indices_flag);
mxArray *map_mef3_session(SESSION *session, si1 map_indices_flag);
mxArray *map_mef3_md1(METADATA_SECTION_1 *md1);
mxArray *map_mef3_tmd2(TIME_SERIES_METADATA_SECTION_2 *tmd2);
mxArray *map_mef3_vmd2(VIDEO_METADATA_SECTION_2 *vmd2);
mxArray *map_mef3_md3(METADATA_SECTION_3 *md3);
mxArray *map_mef3_ti(TIME_SERIES_INDEX *ti, si8 number_of_entries);
mxArray *map_mef3_vi(VIDEO_INDEX *vi, si8 number_of_entries);
mxArray *map_mef3_records(FILE_PROCESSING_STRUCT *ri_fps, FILE_PROCESSING_STRUCT *rd_fps);
mxArray *map_mef3_note(RECORD_HEADER *rh);
mxArray *map_mef3_edfa(RECORD_HEADER *rh);
mxArray *map_mef3_lntp(RECORD_HEADER *rh);
mxArray *map_mef3_seiz(RECORD_HEADER *rh);
mxArray *map_mef3_csti(RECORD_HEADER *rh);
mxArray *map_mef3_esti(RECORD_HEADER *rh);
mxArray *map_mef3_curs(RECORD_HEADER *rh);
mxArray *map_mef3_epoc(RECORD_HEADER *rh);
mxArray *map_mef3_uh(UNIVERSAL_HEADER *universal_header);
bool map_matlab_tmd2(mxArray *mat_tmd2, TIME_SERIES_METADATA_SECTION_2 *tmd2);
bool map_matlab_vmd2(mxArray *mat_vmd2, VIDEO_METADATA_SECTION_2 *vmd2);
bool map_matlab_md3(mxArray *mat_md3, METADATA_SECTION_3 *md3);
#endif // MATMEF_MAPPING_