OpenVideo Documentation

   Main Page       Modules       Class Hierarchy       Alphabetical List       Compound List       File List       Compound Members       Related Pages   

openvideo::OpenCVSrc Class Reference
[Node Classes]

This class is a wrapper for USB and Firewire cameras. More...

#include <OpenCVSrc.h>

Inherits openvideo::Node.

List of all members.

Public Member Functions

 OpenCVSrc ()
virtual ~OpenCVSrc ()
virtual void init ()
virtual void start ()
virtual void stop ()
virtual void postProcess (void)
virtual void process ()
virtual void initPixelFormats ()
virtual bool setParameter (std::string key, std::string value)

Protected Attributes

OpenCVSrcPpimpl

Private Types

typedef Node inherited

Friends

class OpenCVSrcP


Detailed Description

This class is a wrapper for USB and Firewire cameras.

Each class supports reading input from one camera and this is transferred to the listening nodes. The functionality is taken from OpenCV.

Author:
Jorn Skaarud Karlsen

Definition at line 61 of file OpenCVSrc.h.


Member Typedef Documentation

typedef Node openvideo::OpenCVSrc::inherited [private]
 

Typedef inherited for clean access.

Definition at line 65 of file OpenCVSrc.h.


Constructor & Destructor Documentation

OpenCVSrc::OpenCVSrc  ) 
 

Constructor.

Definition at line 123 of file OpenCVSrc.cxx.

References OpenCVSrcP.

OpenCVSrc::~OpenCVSrc  )  [virtual]
 

Destructor.

Definition at line 134 of file OpenCVSrc.cxx.


Member Function Documentation

void OpenCVSrc::init  )  [virtual]
 

clears the image and sets the width and height onto its context.

Reimplemented from openvideo::Node.

Definition at line 218 of file OpenCVSrc.cxx.

References openvideo::State::clear(), openvideo::Node::getInDegree(), openvideo::State::height, openvideo::Node::state, and openvideo::State::width.

void OpenCVSrc::initPixelFormats  )  [virtual]
 

Initializes the supported pixel formats.

Implements openvideo::Node.

Definition at line 145 of file OpenCVSrc.cxx.

References openvideo::FORMAT_B8G8R8, and openvideo::Node::pixelFormats.

void OpenCVSrc::postProcess void   )  [virtual]
 

Performs post processing.

Reimplemented from openvideo::Node.

Definition at line 320 of file OpenCVSrc.cxx.

References openvideo::Node::state.

void OpenCVSrc::process  )  [virtual]
 

Attempts to grab an image from the firewire device.

Reimplemented from openvideo::Node.

Definition at line 298 of file OpenCVSrc.cxx.

References openvideo::State::format, openvideo::FORMAT_R8G8B8, openvideo::State::height, openvideo::Node::state, and openvideo::State::width.

bool OpenCVSrc::setParameter std::string  key,
std::string  value
[virtual]
 

Sets a parameter from the XML-file.

Reimplemented from openvideo::Node.

Definition at line 158 of file OpenCVSrc.cxx.

References OpenCVSrcP::CAPTURE_FROM_CAMERA, OpenCVSrcP::CAPTURE_FROM_FILE, and openvideo::Node::setParameter().

void OpenCVSrc::start  )  [virtual]
 

Starts the capturing process.

Reimplemented from openvideo::Node.

Definition at line 238 of file OpenCVSrc.cxx.

References OpenCVSrcP::CAPTURE_FROM_CAMERA, OpenCVSrcP::CAPTURE_FROM_FILE, height, and width.

void OpenCVSrc::stop  )  [virtual]
 

Stops the capturing process.

Reimplemented from openvideo::Node.

Definition at line 283 of file OpenCVSrc.cxx.


Friends And Related Function Documentation

friend class OpenCVSrcP [friend]
 

Make sure to be friends with the private class.

Definition at line 67 of file OpenCVSrc.h.

Referenced by OpenCVSrc().


Member Data Documentation

OpenCVSrcP* openvideo::OpenCVSrc::pimpl [protected]
 

Private class.

Definition at line 119 of file OpenCVSrc.h.


The documentation for this class was generated from the following files:
 This page was generated at Wed May 31 13:04:18 2006 for OpenVideo by Doxygen.
 If you have any comments, please send a message to schmalstieg@icg.tu-graz.ac.at.
www.studierstube.org