how to convert frames into video?

조회 수: 13 (최근 30일)
jayesh jivarani
jayesh jivarani 2013년 3월 20일
댓글: Walter Roberson 2016년 1월 4일
clc
close all
clear all
i1=imread('cameraman.tif');
for i=1:1000
imshow(i1)
vid1(i)=getframe;
end
movie2avi(vid1,'vid1.avi')
%when i have used this code it works properly in matlab. but when i am opening %video outside the matlab, it is tilted.
%how to solve this problem?
  댓글 수: 4
Walter Roberson
Walter Roberson 2013년 3월 20일
Rotated? Or shear?
Does it become a rotated rectangle, or does it become a parallelogram?
jayesh jivarani
jayesh jivarani 2013년 3월 20일
yes. it becomes parallelogram

댓글을 달려면 로그인하십시오.

답변 (1개)

project9 batch
project9 batch 2016년 1월 2일
then how to convert video into frames
  댓글 수: 1
Walter Roberson
Walter Roberson 2016년 1월 4일
VideoReader class, read one frame at a time, either save the frames in a variable or else imwrite() them to disk.

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by