Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
icl::io::OpenCVVideoWriter Class Reference

#include <OpenCVVideoWriter.h>

Inheritance diagram for icl::io::OpenCVVideoWriter:
icl::io::ImageOutput icl::io::ImageCompressor icl::utils::Uncopyable

List of all members.

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
OpenCVVideoWriteroperator<< (const core::ImgBase *image)
 as write but in stream manner

Private Attributes

CvVideoWriter * writer
 OpenCV VideoWriter struct.

Constructor & Destructor Documentation

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.

Parameters:
filenamethe filename to write to
fourccthis 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
fpsframes per second
frame_sizesize of the frames to be written out
frame_colorcurrently only supported on windows 0 for greyscale else color

Destructor.


Member Function Documentation

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.

writes the next image


Member Data Documentation

CvVideoWriter* icl::io::OpenCVVideoWriter::writer [private]

OpenCV VideoWriter struct.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines