Exemple #1
0
        /// <summary>
        /// Retrieve the next frame from the FrameSource
        /// </summary>
        /// <returns>The next frame. If no more frames, null will be returned.</returns>
        public Mat NextFrame()
        {
            Mat frame = new Mat();

            if (VideoStabInvoke.cveVideostabFrameSourceGetNextFrame(FrameSourcePtr, frame))
            {
                return(frame);
            }
            else
            {
                frame.Dispose();
                return(null);
            }
        }
Exemple #2
0
 /// <summary>
 /// Retrieve the next frame from the FrameSource
 /// </summary>
 /// <param name="frame">The next frame</param>
 /// <returns>True if there are more frames</returns>
 public bool NextFrame(Mat frame)
 {
     return(VideoStabInvoke.cveVideostabFrameSourceGetNextFrame(FrameSourcePtr, frame));
 }