Back to the main page.
Bug 1036 - make ft_sourcemovieER, *TFR, ft_topomovieTFR, *ER
Status | ASSIGNED |
Reported | 2011-10-12 13:41:00 +0200 |
Modified | 2014-06-25 16:59:02 +0200 |
Product: | FieldTrip |
Component: | plotting |
Version: | unspecified |
Hardware: | PC |
Operating System: | Windows |
Importance: | P1 normal |
Assigned to: | Jörn M. Horschig |
URL: | |
Tags: | |
Depends on: | |
Blocks: | 18591696 |
See also: |
Robert Oostenveld - 2011-10-12 13:41:59 +0200
have fun, see bug 1019
Robert Oostenveld - 2011-10-12 17:27:29 +0200
Please look at fieldtrip/test/test_ft_sourcemovie (which still has a FIXME in the middle) and at fieldtrip/test/test_ft_movieplotTFR.
Jan-Mathijs Schoffelen - 2012-03-21 13:45:57 +0100
-team up with JM to ensure using his private version of ft_sourcemovie -keep in mind functionality for selecting subregions from figure from plotting/select_..._
Jörn M. Horschig - 2012-04-11 12:52:56 +0200
Created attachment 254 new gui for movieplot any suggestions for improvements?
Jörn M. Horschig - 2012-04-27 14:55:01 +0200
see bug 683 Wednesday it's sneak peek time
Jörn M. Horschig - 2012-05-03 11:20:29 +0200
Todos: - check whether the use of panels and ft_uilayout are compatible. if so, do this - merge parameter and control panels - implement view modes in view panel for 3D data. Hide for 2D data and adjust window size accordingly - fix size of control elements s.t. maximizing the window on a 200" screen does not result in 100" buttons but in a 190" movie - make panels hide-able (like tabs). if a panel should popup, decrease size of movie-axis, if a panel hides, increase size again (see also the point above) - add manual time selection, similar to colorbar, e.g. "play movie only from -0.2s to 0.4s, although -1s to 2s would be possible" - maybe make playback speed selection as an inputbox - adjust slider stepsize (i.e. one slider step == one step in freq/time) - can playback be made faster so that faster speed results in more images, not skipping certain periods of time? - make mask adjusting opacity instead of replacing the color - add a browse_fun, just for JM ;) - implement recording function (i.e. store images in a matrix and return it) - any need for compression? look up matlab functions and at the code I got from the DCC - implement non-interactive mode (just play the movie, then close the window, return a image-matrix if desired/cfg.recording='yes') - split moviefunction into separate topo and source functions. divide the load s.t. moviefunction takes over GUI-handling, the separate functions updating of the image (work with handles here) aight, still a lot to do :)
Jan-Mathijs Schoffelen - 2012-05-10 19:48:07 +0200
Hi Jorn, Could I be of help here? My boss needs some slick movies because Pim Levelt will give a talk to the Bundespresident at some point in the near future. I could go on and further develop my private version of ft_sourcemovie, but it would make more sense to further develop the ft_movieplot. Any chance that I can get a sneak preview? My old ft_sourcemovie allowed for the storage of the image-frames into a matlab-movie, which can then be saved as an .avi file. No compression possible in linux unfortunately. We should ask Arjen how he creates his movies.
Jörn M. Horschig - 2012-05-11 14:05:53 +0200
yes, definitely! I'm gonna send the function to you... feel free to work on it right now, because the next weeks I won't have time (after Leipzig I'm on vacation, hooray)
Robert Oostenveld - 2012-05-11 16:29:18 +0200
(In reply to comment #6) So the Bundespresident is going to have a look at FieldTrip... that is another milestone!
Jan-Mathijs Schoffelen - 2012-05-11 16:30:25 +0200
yeah, if I understood it correctly. So let's discuss translating all gui-elements into german...
Jan-Mathijs Schoffelen - 2012-05-17 10:42:48 +0200
added and committed moviefunction to svn: fieldtrip/private so that we can both work on the code
Jörn M. Horschig - 2013-04-03 15:37:47 +0200
worked on it again, fixed the following: x implement recording function (i.e. store images in a matrix and return it) - any need for compression? look up matlab functions and at the code I got from the DCC In newer Matlab version, there is the VideoWriter command, which creates a VideoObject - fancy fancy, but it's just like avifile. The only difference is that it can write Motion JPEG compressed videos. However, this does not work for me. The avifile-command also made some trouble for me, so I decided to implement the VideoWriter approach. For older Matlab versions, I still need to implement the avifile approach, which basically works exactly the same (call getframe, then call addframe instead of writeVideo) x implement non-interactive mode (just play the movie, then close the window, return a image-matrix if desired/cfg.recording='yes') This is implemented as cfg.interactive, if 'no' the video will just be saved and then the function quits. If no datafile name to be written is given, a save dialog appears, asking for location and filename. Further, I made the function work on connectivitydata by copying code over from topoplot_common. 721 $ svn ci private/moviefunction.m -m "enhancement-#1036-recording functionality and compatibility with connectivity data added" Sending private/moviefunction.m Transmitting file data . Committed revision 7759. (sorry for sticking to SVN here, gonna move to github next week)
Jörn M. Horschig - 2013-04-03 15:43:34 +0200
Created attachment 445 example of video recording at the moment, the whole figure is recorded. I decided for this because this st*pid getframe function doesn't work well with having different axes. Maybe when rewriting the UI and using 'uilayout', having different axes/panels is not needed anymore.
Jörn M. Horschig - 2013-04-03 16:07:06 +0200
x adjust slider stepsize (i.e. one slider step == one step in freq/time) svn ci moviefunction.m -m "enhancement-#1036-slider stepsize == 1 bin" Sending moviefunction.m Transmitting file data . Committed revision 7761.
Jörn M. Horschig - 2014-02-11 16:38:56 +0100
Hey JM, tomorrow I want to work on the moviefunction again. Do you still got a changed, uncommitted version?
Jan-Mathijs Schoffelen - 2014-02-11 16:48:18 +0100
Nope, my version seem to be in sync with the svn-repo