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 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!