65: filename(p_FiffInfoBase.filename)
66, bads(p_FiffInfoBase.bads)
67, meas_id(
FiffId(p_FiffInfoBase.meas_id))
68, nchan(p_FiffInfoBase.nchan)
69, chs(p_FiffInfoBase.chs)
70, ch_names(p_FiffInfoBase.ch_names)
71, dev_head_t(p_FiffInfoBase.dev_head_t)
72, ctf_head_t(p_FiffInfoBase.ctf_head_t)
86 qint32 kind = this->
chs[idx].kind;
87 if(kind == FIFFV_MEG_CH)
89 if(this->
chs[idx].unit == FIFF_UNIT_T_M)
91 else if(this->
chs[idx].unit == FIFF_UNIT_T)
96 else if(kind == FIFFV_EEG_CH)
98 else if(kind == FIFFV_STIM_CH)
100 else if(kind == FIFFV_EOG_CH)
102 else if(kind == FIFFV_EMG_CH)
104 else if(kind == FIFFV_ECG_CH)
106 else if(kind == FIFFV_MISC_CH)
108 else if (kind == FIFFV_QUAT_0 || kind == FIFFV_QUAT_1 || kind == FIFFV_QUAT_2
109 || kind == FIFFV_QUAT_3 || kind == FIFFV_QUAT_4 || kind == FIFFV_QUAT_5
110 || kind == FIFFV_QUAT_6 || kind == FIFFV_HPI_G || kind == FIFFV_HPI_ERR || kind == FIFFV_HPI_MOV)
112 printf(
"Unknown channel type\n");
200 RowVectorXi sel = RowVectorXi::Zero(
ch_names.size());
202 QStringList t_includedSelection;
207 if( (include.size() == 0 || include.contains(
ch_names[
k])) && !exclude.contains(
ch_names[
k]))
210 if(!t_includedSelection.contains(
ch_names[
k]))
218 sel.conservativeResize(count);
249 QStringList lChannelTypes;
251 for(
int i = 0; i <
chs.size(); ++i)
253 switch(
chs.at(i).kind) {
255 if(
chs.at(i).unit == FIFF_UNIT_T_M ) {
256 if(!lChannelTypes.contains(
"grad")) {
257 lChannelTypes <<
"grad";
259 }
else if(
chs.at(i).unit == FIFF_UNIT_T ) {
260 if(!lChannelTypes.contains(
"mag")) {
261 lChannelTypes <<
"mag";
268 if(!lChannelTypes.contains(
"ref_meg")) {
269 lChannelTypes <<
"ref_meg";
275 if(!lChannelTypes.contains(
"eeg")) {
276 lChannelTypes <<
"eeg";
282 if(!lChannelTypes.contains(
"ecg")) {
283 lChannelTypes <<
"ecg";
288 if(!lChannelTypes.contains(
"emg")) {
289 lChannelTypes <<
"emg";
294 if(!lChannelTypes.contains(
"eog")) {
295 lChannelTypes <<
"eog";
300 case FIFFV_STIM_CH: {
301 if(!lChannelTypes.contains(
"stim")) {
302 lChannelTypes <<
"stim";
307 case FIFFV_MISC_CH: {
308 if(!lChannelTypes.contains(
"misc")) {
309 lChannelTypes <<
"misc";
316 return lChannelTypes;