|
VAT
3.0
Video Analysis Tool
|
The CameraBuffer class is used to store captured frames from camera before use them. More...
#include <CameraThread.h>
Public Member Functions | |
| CameraBuffer (int n_frames) | |
| CameraBuffer constructor. More... | |
| bool | push (cv::Mat &frame, int time_stamp) |
| Image frame insertion to the buffer method. More... | |
| bool | pop (cv::Mat &frame, int &time_stamp) |
| Image frame recovery from the buffer method. More... | |
| double | usage () |
| Buffer occupation ratio method. More... | |
The CameraBuffer class is used to store captured frames from camera before use them.
| CameraBuffer::CameraBuffer | ( | int | n_frames | ) |
CameraBuffer constructor.
| n_frames | Numbers of frames that the buffer in creation will store as maximum. |
| bool CameraBuffer::pop | ( | cv::Mat & | frame, |
| int & | time_stamp | ||
| ) |
Image frame recovery from the buffer method.
| frame | Mat parameter where image frame will be saved. |
| time_stamp | Integer parameter where image acquisition time identifier will be saved. |
| bool CameraBuffer::push | ( | cv::Mat & | frame, |
| int | time_stamp | ||
| ) |
Image frame insertion to the buffer method.
| frame | Image that was captured. |
| time_stamp | Integer identifier that allow to know acquirement sequence order. |
| double CameraBuffer::usage | ( | ) |
Buffer occupation ratio method.
1.8.11