From: Naimish on 28 Jul 2010 09:26 I use following matlab program to convert frames of video into images,but with the help of this program i get image of only one frame. I want to convert all frames of video into corresponding image. so please give me possible solution. clc; close all; clear all; obj = mmreader('shaky_car.avi', 'tag', 'myreader1'); vidFrames = read(obj); numFrames = get(obj, 'numberOfFrames'); for k = 1 : numFrames mov(k).cdata = vidFrames(:,:,:,k); mov(k).colormap = []; imagesc(mov(1,k).cdata); F = getframe; [X,Map] = frame2im(F); end
|
Pages: 1 Prev: Boxplot column vectors of different dimensions? Next: subs error ,help |