M-File Help: Movie View code for Movie

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).

Methods

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

Properties

curFrame The index of the frame just read
totalDuration The running time of the movie (seconds)

See also

ImageSource, Video

SEE ALSO: Video


Movie.Movie

Image source constructor

m = Movie(file, options) is an Movie object that returns frames from the movie file file.

Options

'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

Movie.char

Convert to string

M.char() is a string representing the state of the movie object in human readable form.


Movie.close

Close the image source

M.close() closes the connection to the movie.


Movie.grab

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.

Options

'skip', S Skip frames, and return current+S frame
'frame', F Return frame F within the movie

Notes


 

© 1990-2012 Peter Corke.