ACT-CV - Machine Vision for Cognitive Modeling
Public Member Functions | Private Attributes | List of all members
WriterObs Class Reference

simple video writer More...

#include <FrameObserver.h>

Inheritance diagram for WriterObs:
Inheritance graph
Collaboration diagram for WriterObs:
Collaboration graph

Public Member Functions

 WriterObs (const char *fname="actcv-out.mpg")
 ~WriterObs ()
void FrameNotify (IplImage *img, int frameNr)
 notification of a new frame More...
const char * GetName () const
 the name of the observer More...
- Public Member Functions inherited from FrameObs
virtual void RegionInfoNotify (const std::vector< RegionInfo > &regions)
- Public Member Functions inherited from ReferenceCount
 ReferenceCount ()
virtual ~ReferenceCount ()
void IncRefCount ()
void DecRefCount ()

Private Attributes

CvVideoWriter * pWriter
const char * videoFName

Detailed Description

simple video writer

Definition at line 159 of file FrameObserver.h.

Constructor & Destructor Documentation

WriterObs::WriterObs ( const char *  fname = "actcv-out.mpg")

Definition at line 163 of file FrameObserver.h.

WriterObs::~WriterObs ( )

Definition at line 167 of file FrameObserver.h.

References pWriter.

Member Function Documentation

void WriterObs::FrameNotify ( IplImage *  img,
int  frameNr 

notification of a new frame

Implements FrameObs.

Definition at line 173 of file FrameObserver.h.

References pWriter, and videoFName.

const char* WriterObs::GetName ( ) const

the name of the observer

This is used to avoid that two instances of the same observer class are added to the observer list.

See Also

Implements FrameObs.

Definition at line 181 of file FrameObserver.h.

Member Data Documentation

CvVideoWriter* WriterObs::pWriter

Definition at line 160 of file FrameObserver.h.

Referenced by FrameNotify(), and ~WriterObs().

const char* WriterObs::videoFName

Definition at line 161 of file FrameObserver.h.

Referenced by FrameNotify().

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

ACT-CV - Machine Vision for Cognitive Modeling
© 2015 Marc Halbruegge (