make a movie from grayscale frames
古いコメントを表示
Hi,
I want to make a movie from grayscale frames after I perform a graphics on them. I put each frame in 4D matrix and I tried to use in "immovie" command but i got this eror message:
"Error using immovie>parse_inputs (line 75)
Truecolor RGB image has to be an M-by-N-by-3-by-K array.
Error in immovie (line 40)
[X,map] = parse_inputs(varargin{:});
Error in main_2 (line 34)
mov=immovie(images,[]);"
How can I make a film from the frames after I painted on them graphics?
Thanks, Itai
1 件のコメント
Adam
2014 年 8 月 11 日
Have you tried passing 'grey' as the second argument to immovie? I'm not sure what it does with an empty second argument but judging from the error message it reverts to the single input argument overload which expects an RGB input.
回答 (2 件)
Joseph Cheng
2014 年 8 月 11 日
Just as Adam suggests, I would also agree it looks like you should be passing the grey scale map in the second argument however I do not think just putting 'grey' will work. what you can do is create a map by using
map = colormap(gray(256));%256 as an example.
and then call your the immovie
mov = immovie(images,map);
Image Analyst
2014 年 8 月 11 日
0 投票
3 件のコメント
Image Analyst
2014 年 8 月 11 日
Attached is a script where I build a movie from a bunch of stored images. If you can save out your images to disk, for example with export_fig(), then this will work, at least it does with the color images in the demo.
Image Analyst
2014 年 8 月 11 日
Are your graphics in color, and you want them to remain in color while the movie is playing? How did you create your 4D stack of color images? Did you use export_fig() to create your color image?
itai
2014 年 8 月 12 日
カテゴリ
ヘルプ センター および File Exchange で Green についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!