Re: Still images in MATLAB movies



Thank you. I tried this approach (without repmat, but simply
by using

M(1) = im2frame(X,map);
M(2) = im2frame(X,map);
...
M(n) = im2frame(X,map);
movie(M)

However, I am still not getting a fixed duration. For
instance, if I read in 72 frames at 12 frames-per-second,
the duration of the movie (as measured by 'tic' and 'toc')is
over 7, and not the expected value of (72/12) = 6. What
could be the reason for this?




roberson@xxxxxxxxxxxxxxxxxx (Walter Roberson) wrote in
message <g4tmgq$7gu$1@xxxxxxxxxxxxxxxxxxxxxxx>...
In article <g4tm3t$m3e$1@xxxxxxxxxxxxxxxxxx>,
Arvind Iyer <aiyer@xxxxxxxxxxx> wrote:
I need still images to be displayed for fixed durations in
MATLAB movies. eg: Disply a photograph for 6 seconds during
a movie.

How can this be accomplished using im2frame?

It cannot, not directly. im2frame only constructs frames,
each of which is just image data, untimed and independant
of the other frames. Some other routine such as movie() is
responsible for playing the data structure, and it is movie()
that knows about frame rates and thus about the duration that
any one frame is displayed.

If you know the target frame rate, then you can im2frame()
once and then repmat() the result enough times that the image
would appear for the appropriate duration at the target
frame rate,
e.g., 6*15 copies if you want the image to appear for 6
seconds
at 15 frames per second.

--
"There is no greater calling than to serve your fellow men.
There is no greater contribution than to help the weak.
There is no greater satisfaction than to have done it
well."
-- Walter
Reuther

.



Relevant Pages

  • OT: Global warming again.
    ... My network of climatologists alerted me to this wonderful dissertation: ... this young Maine student's website is worth a ... Earth Science, Portland High School, by Kristen Byrnes of Portland ... This report is a comprehensive look at the global warming issue without ...
    (rec.crafts.textiles.needlework)
  • Re: Twin paradox revisited ll
    ... Think of the home-sister's life as consisting of a long strip ... Each frame of that movie film is marked along ... frame of that movie film that represents his sister's life. ...
    (sci.physics.relativity)
  • Re: How to save files into a specific folder
    ... on the name of the input movie file. ... numberOfFrames = size; ... out to individual disk files?'); ... % Each frame will be in a separate file with unique name. ...
    (comp.soft-sys.matlab)
  • Re: Some Contradictory Claims in SR:
    ... Second is duration already. ... Does the passage of a clock second in your frame ... Does a clock second has the same *time* content in all frames? ...
    (sci.physics)
  • Some thoughts on Photo to Movie
    ... After making a movie from still photographs using the Ken Burns effect ... multiple key frame icon is to create two key frames, ... click on it in the timeline. ... or "Pause after" that time is ADDED to the total time the image appears ...
    (comp.sys.mac.apps)