Here is the matlab code to convert a collection of images to a video file.%// Will open an avi file name test.avi in local folder aviobj = avifile('test.avi'); %// the quality of this video file aviobj.Quality = 80; %// compression method. See matlab manual for details. aviobj.COMPRESSION ='None';%%color image for i =1:numOfFrames %// apply image processing algorithms to the image here. %// image must be in size width x height x 3 %// in other words, color image. .......... .......... %// add image to the end of the avi file aviobj = addframe(aviobj,image); end %// close the file handle. aviobj = close(aviobj);
Click here for detail instruction on addframe function.
Keywords: convert images jpb bmp to video avi compressed codecAdvertisements