How can I use movie2avi to create a movie without distortion?
1 回表示 (過去 30 日間)
古いコメントを表示
The result I am currently seeing is that the frames of the avi movie are displayed rotated to the right with a weird mirror-effect distortion
The problem seems to be similar to that reported here: http://www.mathworks.com/matlabcentral/newsreader/view_thread/293880
However since I am not creating my movie as described in this thread, the solution doesn't really work (unless I am mistaken). Playing the movie using the regular matlab function movie(mov) works fine.
Here is the code I am using:
for frame_idx = 1:size(imstack,3)
image = double(imstack(:,:,frame_idx));
rgb = repmat(image,[1 1 3]);
rgbf(:,:,:,frame_idx)=rgb;
end
mov = immovie(rgbf);
movie2avi(mov, moviename, 'compression', 'none', 'fps', 8);
Any advice would be appreciated. Thanks in advance, n
0 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Audio and Video Data についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!