Print

Print


Dear Michael,

There is no extensive support for making movies in SPM8 and Fieldtrip
as far as I know. However, there is quite a simple generic way in
Matlab to make movies from anything you can plot in a figure. Try

help getframe
help movie2avi

In the tool invoked by 'render' button in 3D Source Reconstruction
someone has already added these commands to the movie displaying code
there (see around line 582 of spm_eeg_inv_visu3D_api.m). So if you
write

global MOVIE

in the command line and then run a movie in this tool, you'll get a
movie stored in the variable MOVIE and then you can save it using
movie2avi.

For the movie that you can generate using the 'mip' button see the
code starting around line 96 of  spm_eeg_invert_display.m. You can
modify it in a similar way.

One way to make a movie of scalp topographies via the GUI in SPM is to
export your sensor data to image, open the image using CheckReg
button, right click on it and choose 'Movie tool'. You can then scroll
through the Z axis which is basically what you want and save it as a
movie. If you want to use the plot from the reviewing tool, you'll
have to write your own bit of code using spm_eeg_plotScalpData.

Best,

Vladimir


On Sun, Feb 6, 2011 at 5:10 AM, Michael Spezio
<[log in to unmask]> wrote:
> Does anyone have experience with saving the movies that appear in the
> Graphics Window in SPM8's EEG analyses (e.g., the movie in EEG/MEG Source
> Localization)? Is there an easy way to save the scalp topographies in the
> Graphics Window (e.g., from Display --> M/EEG) as movies over time?
>
> Is this better accomplished in FieldTrip directly, or can this be done from
> within SPM8?
>
> Thanks for any guidance.
>
> Best,
>
> Michael
>
> Michael L. Spezio, Ph.D.
> Assistant Professor of Psychology
> Department of Psychology
> Scripps College
> Claremont, CA
> [log in to unmask]
> 909.607.0914
>
> and
>
> Visiting Associate Scientist
> Psychology & Neuroscience
> Division of Humanities & Social Sciences
> Caltech
> Pasadena, CA 91125
> [log in to unmask]
>