M-File Help: Movie | View code for Movie |
Class to read movie file
A concrete subclass of ImageSource that acquires images from a web camera built by Axis Communications (www.axis.com).
grab | Aquire and return the next image |
size | Size of image |
close | Close the image source |
char | Convert the object parameters to human readable string |
curFrame | The index of the frame just read |
totalDuration | The running time of the movie (seconds) |
SEE ALSO: Video
Image source constructor
m = Movie(file, options) is an Movie object that returns frames from the movie file file.
'uint8' | Return image with uint8 pixels (default) |
'float' | Return image with float pixels |
'double' | Return image with double precision pixels |
'grey' | Return greyscale image |
'gamma', G | Apply gamma correction with gamma=G |
'scale', S | Subsample the image by S in both directions |
'skip', S | Read every S'th frame from the movie |
Convert to string
M.char() is a string representing the state of the movie object in human readable form.
Close the image source
M.close() closes the connection to the movie.
Acquire next frame from movie
im = M.grab() acquires the next image from the movie
im = M.grab(options) as above but allows the next frame to be specified.
'skip', S | Skip frames, and return current+S frame |
'frame', F | Return frame F within the movie |
© 1990-2012 Peter Corke.