Prev: reading textfile and displaying its contents in listbox
Next: Question on the PSF, OTF and FFT. Thanks!
From: Erik on 28 Jul 2010 05:24 I'm having the same problem, however, Rudi's solution does not work for me: There is a difference between passing the figure handle and passing the frame (besides making it run in the background when 'visible' is set to 'off'). I get a small, skewed and striated movie when I pass the figure handle... So my question, is there another way to hide frames when making a movie? Regards, Erik "Rudi Schuech" <atomictortoise(a)aim.com> wrote in message <ef3b990.0(a)webcrossing.raydaftYaTP>... > Answered my own question: > > I realized you don't actually need getframe(). I now just insert the > figure handle (fig1) instead of the frame in addframe(aviobj1, > fig1),and set visibility 'off' when creating the figure. > > Rudi Schuech wrote:
From: Oliver Woodford on 28 Jul 2010 05:59 "Erik" wrote: > Is there another way to hide frames when making a movie? Make the figure invisible, then use print/saveas to export the figure - write to TIFF, then read it back in. Export_fig (http://www.mathworks.com/matlabcentral/fileexchange/23629-exportfig) can do this for you, providing all the settings for faithful reproduction: frame = export_fig(fig_handle, '-nocrop', '-a1'); It will even anti-alias the output, if you like, e.g. using '-a3'.
From: Erik on 28 Jul 2010 07:13
Hi Oliver, I'll see if I can make that work, it does sound like it might take more time than actually just letting the frames pop up. Erik "Oliver Woodford" <o.j.woodford.98(a)cantab.net> wrote in message <i2ov18$mpt$1(a)fred.mathworks.com>... > "Erik" wrote: > > Is there another way to hide frames when making a movie? > > Make the figure invisible, then use print/saveas to export the figure - write to TIFF, then read it back in. > > Export_fig (http://www.mathworks.com/matlabcentral/fileexchange/23629-exportfig) can do this for you, providing all the settings for faithful reproduction: > frame = export_fig(fig_handle, '-nocrop', '-a1'); > It will even anti-alias the output, if you like, e.g. using '-a3'. |