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!