Re: How to create movie from bitmap images?
- From: "Olivia " <olivia.carmichael@xxxxxxxxx>
- Date: Wed, 31 Oct 2007 16:03:44 +0000 (UTC)
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,of
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
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
.
- Follow-Ups:
- Re: How to create movie from bitmap images?
- From: Walter Roberson
- Re: How to create movie from bitmap images?
- Prev by Date: Re: can matlab plot data by condition
- Next by Date: Re: lsqnonlin- HELP!!
- Previous by thread: Programmable Timer Function
- Next by thread: Re: How to create movie from bitmap images?
- Index(es):
Relevant Pages
|