summaryrefslogtreecommitdiff
path: root/macros/readframe.sci
blob: 747c4ded653f3d7ee71731504285277d4a76a681 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
function [out]=readFrame(input)
// This function is used to return the next frame pointed to by the CurrentTime Property of A VideoReader Struct.
//
// Calling Sequence
//   results = readFrame();
//
// Parameters
// results: Frame of video.
//
// Description
// This function checks whether there is a next frame to grab in the video read through VideoReader and returns the frame.
//
// Examples
// videoStr = VideoReader('sample.mp4');
// if(hasFrame()) then
// frame = readFrame()
// end
//
// Authors
//  Shashank Shekhar
//	Tanmay Chaudhari
         out=ocv_readFrame();
endfunction;