Image Component Library (ICL)
|
#include <OpenCVVideoWriter.h>
Public Member Functions | |
OpenCVVideoWriter (const std::string &filename, const std::string &fourcc, double fps, utils::Size frame_size, int frame_color=1) throw (utils::ICLException) | |
Creates a new videowriter with given filename. | |
~OpenCVVideoWriter () | |
Destructor. | |
void | write (const core::ImgBase *image) |
writes the next image | |
virtual void | send (const core::ImgBase *image) |
wraps write to implement ImageOutput interface | |
OpenCVVideoWriter & | operator<< (const core::ImgBase *image) |
as write but in stream manner | |
Private Attributes | |
CvVideoWriter * | writer |
OpenCV VideoWriter struct. |
icl::io::OpenCVVideoWriter::OpenCVVideoWriter | ( | const std::string & | filename, |
const std::string & | fourcc, | ||
double | fps, | ||
utils::Size | frame_size, | ||
int | frame_color = 1 |
||
) | throw (utils::ICLException) |
Creates a new videowriter with given filename.
filename | the filename to write to |
fourcc | this is translated into an instance of FOURCC possible is: PIM1 (for mpeg 1) MJPG (for motion jepg) MP42 (for mpeg 4.2) DIV3 (for mpeg 4.3) DIVX (for mpeg 4) U263 (for H263 codec) I263 (for H263I codec) FLV1 (for FLV1 code) on linux: IYUV for IYUV codec ?? on windows: "" for open dialog |
fps | frames per second |
frame_size | size of the frames to be written out |
frame_color | currently only supported on windows 0 for greyscale else color |
Destructor.
OpenCVVideoWriter& icl::io::OpenCVVideoWriter::operator<< | ( | const core::ImgBase * | image | ) |
as write but in stream manner
virtual void icl::io::OpenCVVideoWriter::send | ( | const core::ImgBase * | image | ) | [inline, virtual] |
wraps write to implement ImageOutput interface
Implements icl::io::ImageOutput.
void icl::io::OpenCVVideoWriter::write | ( | const core::ImgBase * | image | ) |
writes the next image
CvVideoWriter* icl::io::OpenCVVideoWriter::writer [private] |
OpenCV VideoWriter struct.