|
vivalib library
Concurrent C++11 OpenCV library for Computer Vision applications
|
#include <output.h>


Public Member Functions | |
| VideoOutput (const string &filename, Size size=Size(-1,-1), int fps=30, CODEC codec=CODEC::MPEG4, int codeFlag=-1) | |
| virtual bool | writeFrame (Mat &frame) |
| void | setCodec (CODEC codec) |
| ~VideoOutput () | |
Public Member Functions inherited from viva::Output | |
| Output (const Size &size=Size(-1,-1), int conversionFlag=-1) | |
| virtual | ~Output () |
| virtual void | close () |
Additional Inherited Members | |
Protected Attributes inherited from viva::Output | |
| Size | _size |
| bool | _convert |
| int | _conversionFlag |
Video Output class. Generates a video file using an specified coded, resolution, frame per second rate and conversionflag
| VideoOutput::VideoOutput | ( | const string & | filename, |
| Size | size = Size(-1,-1), |
||
| int | fps = 30, |
||
| CODEC | codec = CODEC::MPEG4, |
||
| int | codeFlag = -1 |
||
| ) |
Creates a Video Output using the
| filename | video file filename |
| size | scale the final video output to the desired resolution |
| fps | frame per seconds |
| codec | One of the available OpenCV codecs installed in your computer |
| codeFlag | color conversion e.g., CV_BGR2GRAY |
|
inline |
Destructor will release the VideoWriter output
|
inline |
Set the codec to use while generating the video file
|
virtual |
Override from Output base class
Implements viva::Output.
1.8.11