Re: How to create movie from bitmap images?



Jiri,

Were you able to find the solution? I have a similar code
to create movie from individual frames

cmap=colormap(gray);
for z=1:length(imgInd)
img=imread([directoryname,f,fnames(imgInd(z)).name]);
m(z)=im2frame(img,cmap);
end
and I get the error:

??? Error using ==> im2frame
Indexed movie data values must be legal colormap indices:
1.0 <= value <= length(colormap) for double-precision movie
data, and
0 <= value <= length(colormap)-1 for uint8 movie data.

Error in ==> Movie1 at 67
m(z)=im2frame(img,cmap);

When I work with colored images, it works fine. I am not
able to get much help online.

Thanks,
Olivia.

"Jiri " <vejrazka_removeThis_@xxxxxxxxxxx> wrote in message
<fc91vp$94c$1@xxxxxxxxxxxxxxxxxx>...
Hello,

I am trying to create and play a movie made from frames,
which are saved (each in an individual file) on a disk. I
have done this (fileList is a cell containing filenames
of
image files):

cmap = colormap(gray);
for kk=1:numel(fileList)
Img = imread(fileList{kk});
frames(kk) = im2frame(Img,cmap);
end
movie(frames,5);

but it does not work - I get

??? Error using ==> movie
Could not create movie frame

What is wrong?

Images are 8-bit gray, 232x508 pixels.

Thank you

.



Relevant Pages

  • Re: Re: dont even try to fine a skirt
    ... Mohammar's discretion echos with respect to our movie after we ... We climb them, then we anywhere assure Abbas and ... Who frames suddenly, ...
    (sci.crypt)
  • Re: MAGIX: Couple more editing queries
    ... Immediately save the movie as MPEG. ... short scene from Slide A at the *end* of the movie. ... renders with the incorrect clip (about 8 frames) still present. ... I can press it a total of 8 times, displaying the ...
    (rec.video.desktop)
  • Re: MAGIX: Couple more editing queries
    ... Immediately save the movie as MPEG. ... Re-import into MEP as a new movie. ... renders with the incorrect clip (about 8 frames) still present. ...
    (rec.video.desktop)
  • Re: Can I play only specified frames of a movie in ppt
    ... you can do this if you insert your movie as an object - you'll need to ... set the Start Selection and End Selection points though in Media Player - ... names Media Object or Video Object any more - however, ... on other occassions we wish to only show frames 2003 to 2545 etc. ...
    (microsoft.public.powerpoint)
  • Re: MAGIX: Couple more editing queries
    ... Immediately save the movie as MPEG. ... short scene from Slide A at the *end* of the movie. ... renders with the incorrect clip (about 8 frames) still present. ... I can press it a total of 8 times, displaying the ...
    (rec.video.desktop)