sccn / eeglab

EEGLAB is an open source signal processing environment for electrophysiological signals running on Matlab and developed at the SCCN/UCSD
https://eeglab.ucsd.edu/
Other
592 stars 241 forks source link

Merging multiple LSL steams from XDF files #810

Open arnodelorme opened 1 week ago

arnodelorme commented 1 week ago

Have a function to merge multiple streams in eeg_load_xdf and use the eeg_mergechannels function on the clock times (in streams{1}.info.clock_offsets.offset). For each stream add the time and offset (in seconds) and compute the linear regression between streams (create an event table using these clock times and use eeg_mergechannels to align the streams).

@neuromechanist

neuromechanist commented 1 week ago

Current plan:

  1. Make a dropdown menu in the import GUI for the stream available in the XDF.
  2. Synchronize the streams with an option for remapping to a base stream.
  3. Put the resampled streams under the etc field.