필터 지우기
필터 지우기

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

조회 수: 1 (최근 30일)
Nora
Nora 2013년 2월 21일
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개)

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by