vivalib library
Concurrent C++11 OpenCV library for Computer Vision applications
Public Member Functions | List of all members
viva::VideoOutput Class Reference

#include <output.h>

Inheritance diagram for viva::VideoOutput:
Inheritance graph
[legend]
Collaboration diagram for viva::VideoOutput:
Collaboration graph
[legend]

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
 

Detailed Description

Video Output class. Generates a video file using an specified coded, resolution, frame per second rate and conversionflag

Constructor & Destructor Documentation

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

Parameters
filenamevideo file filename
sizescale the final video output to the desired resolution
fpsframe per seconds
codecOne of the available OpenCV codecs installed in your computer
codeFlagcolor conversion e.g., CV_BGR2GRAY
viva::VideoOutput::~VideoOutput ( )
inline

Destructor will release the VideoWriter output

Member Function Documentation

void viva::VideoOutput::setCodec ( CODEC  codec)
inline

Set the codec to use while generating the video file

bool VideoOutput::writeFrame ( Mat &  frame)
virtual

Override from Output base class

Implements viva::Output.


The documentation for this class was generated from the following files: