Grabs and returns a frame from a opened video file or camera (experimental)
im = avireadframe(n)
avireadframe
grabs and returns a frame from an
opened video file or camera. It can only get the current frame and move to
the pointer to the next frame.
Video support for SIVP is only available when SIVP is compiled with OpenCV which support video I/O.
n = aviopen(fullpath(getSIVPpath() + "/images/video.avi")); im = avireadframe(n); //get a frame imshow(im); avilistopened() aviclose(n); | ![]() | ![]() |
avireadframe
can only get the current frame
now.
http://sivp.sf.net