Re: Still images in MATLAB movies
- From: "Arvind Iyer" <aiyer@xxxxxxxxxxx>
- Date: Mon, 7 Jul 2008 20:59:06 +0000 (UTC)
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>,frame rate,
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
e.g., 6*15 copies if you want the image to appear for 6seconds
at 15 frames per second.well."
--
"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
-- WalterReuther
.
- Follow-Ups:
- Re: Still images in MATLAB movies
- From: Peter Boettcher
- Re: Still images in MATLAB movies
- From: Walter Roberson
- Re: Still images in MATLAB movies
- References:
- Still images in MATLAB movies
- From: Arvind Iyer
- Re: Still images in MATLAB movies
- From: Walter Roberson
- Still images in MATLAB movies
- Prev by Date: Re: searching array
- Next by Date: Re: How to cut sound wave files
- Previous by thread: Re: Still images in MATLAB movies
- Next by thread: Re: Still images in MATLAB movies
- Index(es):
Relevant Pages
|