AviRead

所属分类:视频捕捉采集剪辑
开发工具:matlab
文件大小:5KB
下载次数:59
上传日期:2007-12-28 13:47:11
上 传 者qishi0301
说明:  自己编写的视频读取的源码,推荐大家下载一下
(I have written to read the source video, we recommend you download)

文件列表:
AviRead.m (12521, 2000-12-18)

AviRead 1.12 18.12.2000 (c) by R.Rawer '99-'00 =============================================================================== (1) Contents =============================================================================== (1) Contents (2) About AviRead (3) Syntax of AviRead (4) Possible Code Modifications (5) History of Changes (6) Contact the Autor =============================================================================== (2) About Aviread =============================================================================== AviRead is a simple m-file to read the images of uncompressed AVIs into MatLab. The read process is farily slow since for-loops and file seeks are used. So don't expect any high performance functionality of this simple tool ;-) There are probably two regions of intrest for you in this m-File: (*1*) the section where the bytestream read from the AVI-file is transformed into a matrix (*2*) the section where you can add you own code to do caculations based on the picture data Both sections are marked in the source code. =============================================================================== (3) Syntax of AviRead =============================================================================== Syntax: Result = AviRead (filename, number of frames to process, first frame to display, last frame to display) Result : last image displayed (depending on color depth of AVI: 8 Bits per Pixel: Matrix[Lines, Rows] of uint8 16 Bits per Pixel: Matrix[Lines, Rows] of uint16 24 Bits per Pixel: Matrix[Lines, Rows, 3] of uint8 Example: AviRead('sample.avi',30,10,12) reads and processes the first 30 frames of the file 'sample.avi', and displays frame 10, 11 and 12 each in its own figure. =============================================================================== (4) Possible Code Modifications =============================================================================== AviRead justs reads the image data of AVI-files. In order to process this image data you probably need to modify the the code in section (*2*). If anothe arrangement of the pixelinformation is needed also modify section (*1*) ind AviRead.m. Use the folowing variables within your image processing routines: no_of_frames: number of frames to be read time_per_frame: time to display each frame [ms] (reverse of frames per 0.001 second) frames: number of this frame columns: number of pixels per line lines: number of lines per image bytes: number of bytes per pixel im: image data: 8bit/pixel: uint8-Matrix[columns,lines] 16bit/pixel: uint16-Matrix[columns,lines] 24bit/pixel: uint8-Matrix[columns,lines,3] (3 Color Planes R,G,B) 32bit/pixel: uint32-Matrix[columns,lines] xx: raw image data: 8bit/pixel: uint8-Matrix[columns*lines] (1-dimentional) 16bit/pixel: uint16-Matrix[columns*lines] (1-dimentional) 24bit/pixel: uint8-Matrix[3,columns*lines] (1-dimentional, 3 Color Planes R,G,B) 32bit/pixel: uint32-Matrix[columns*lines] (1-dimentional) =============================================================================== (5) History of Changes =============================================================================== V1.12 (18/12/2000): ------------------- * bug with kombined media format fixed (now AVIs including sound can be used) * check an correct if user wants to read more frames then availlable in RIFF file V1.11 (13/06/2000): ------------------- * added time_per_frame variable (frames per seconds = 1000/time_per_frame) V1.10 (11/06/2000): ------------------- * supports 8,16,24,32 bits per Pixel AVI-Files * Bugfix for 24Bit (Truecolor) support * Added this Readme / History V1.01 (10/09/1999): ------------------- * First Version * Supports plain grayscale AVIs (No compression) =============================================================================== (6) Contact the Author =============================================================================== rrawer@gmx.de http://www.rawer.de/rainer/software/ ===============================================================================

近期下载者

相关文件


收藏者