| Home Introduction User's Guide Download

| AviReadFrame: |  |

| NAME AviReadFrame ¨C read the specific frame from the video stream. SYNOPSIS image = AviReadFrame(AviReadMessage, pos) PARAMETERS
AviReadMessageĦĦThe read message, it's obtained after OpenAviFile function.
posĦĦĦĦĦĦĦĦĦĦĦĦĦĦThe position of the video frame.
imageĦĦĦĦĦĦĦĦĦĦĦĦMĦÁNĦÁ3 matrix in range 0-1(double precision) in linux,
ĦĦĦĦĦĦĦĦĦĦĦĦĦĦĦĦĦĦin range 0-255 in windows.

DISCRIPTION
Function AviReadFrame reads the specific frame from the video stream, the returned data can be passed to the SIP function for processing. There are there cases that would lead to an error.
ĦĦĦĦĦĦ(1) Incorrect parameters.
ĦĦĦĦĦĦ(2) Reading error.
ĦĦĦĦĦĦ(3) Memory unavailable.
EXAMPLE
initial_dir = PWD;
chdir (VIPDIR + 'videos');
pfi = OpenAviFile('car.avi');
if pfi <> []
ĦĦĦĦpos = 170;
ĦĦĦĦImg = AviReadFrame(pfi, pos);
ĦĦĦĦxbasc();
ĦĦĦĦimshow(Img);
ĦĦĦĦAviReadEnd(pfi);
end
chdir(initial_dir);

SEE ALSO
OpenAviFile, AviReadFrame

back

Entry
Home Introduction User's Guide
Function Reference
SIP Functions New Image Func Video Functions
Developer's Guide
Graphical Display Video Processing Modified Functions GUI
Demo
Image Processing Video Processing
Support
Future Work Known Bugs FAQ Acknowledgement About Us

|  |  | About Us | Contact Us | Our University Copyright © 2004-2005 Scilab group of Xiamen University, China |  |