[Eeglablist] Video EEG with EEGLAB?

Mikołaj Magnuski imponderabilion at gmail.com
Mon Nov 4 12:47:45 PST 2013


Hey Vito,

you can load and edit video with matlab and provided you have all the
necessary codecs it may also be possible to save the video back to the
preferred format.
>From what I remember MATLAB does not do well with compression however and
you can end up with huge files.
Generally to load video data you can use VideoReader object (or mmreader in
MATLAB versions earlier than 2010b).
The documentation is here:

http://www.mathworks.com/help/matlab/ref/videoreaderclass.html

However,  there may be some functions at Matlab Central that better suit
you needs, take a look, for example:
http://www.mathworks.com/matlabcentral/fileexchange/8028-mmread

I do not have much experience with saving the video later in a format and
compression identical
to your original file, but I think you may also find some nice functions on
Matlab Central for that.

Now, concerning EEG:

If you use eegplot in a way that does not immediately remove signal
(demonstration is below) and then use TMPREJ variable produced you can get
to know which EEG samples you marked for removal (and later remove).
Call eegplot this way:
eegplot(EEG.data, 'srate', EEG.srate, 'events', EEG.event,...
        'butlabel', 'MARK', 'command', 'disp('':)'');');

% and after marking you data:

if exist('TMPREJ', 'var')
    toreject = round(TMPREJ(:,1:2));
end

% now toreject contains extent of your
% each rejection mark in data samples
% with first column denoting start sample
% and second column - end sample (and
% each row being one rejection mark

You would still need to know what is the video offset with respect to EEG
recording and know the video sampling rate to translate your EEG samples to
video frames.



4 lis 2013 18:28 "Vito de Feo" <vito.defeo at zmnh.uni-hamburg.de> napisał(a):

>
> Hey everyone,
>
> I have some video eeg recording (eeg + video) and I wish delete some
> parts of my file (for example becuase I have artifacts). At the same
> time I would delete the same intervals from my video.
> I think that eeglab do not have this feature.
> Do you know some software or some way to do that?
>
> Thanks a lot,
>
> Vito
>
>
>
>
> --
> Pflichtangaben gemäß Gesetz über elektronische Handelsregister und
> Genossenschaftsregister sowie das Unternehmensregister (EHUG):
>
> Universitätsklinikum Hamburg-Eppendorf
> Körperschaft des öffentlichen Rechts
> Gerichtsstand: Hamburg
>
> Vorstandsmitglieder:
> Prof. Dr. Martin Zeitz (Vorsitzender)
> Prof. Dr. Dr. Uwe Koch-Gromus
> Joachim Prölß
> Rainer Schoppik
> _______________________________________________
> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
> To unsubscribe, send an empty email to
> eeglablist-unsubscribe at sccn.ucsd.edu
> For digest mode, send an email with the subject "set digest mime" to
> eeglablist-request at sccn.ucsd.edu
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20131104/7bfdf113/attachment.html>


More information about the eeglablist mailing list