How can I use movie2avi to create a movie without distortion?

2 visualizzazioni (ultimi 30 giorni)
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

Risposte (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by