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

Grabber class that uses OpenCV's grabbing function to grab camera images. More...

#include <OpenCVCamGrabber.h>

Inheritance diagram for icl::io::OpenCVCamGrabber:
icl::io::Grabber icl::utils::Uncopyable icl::utils::Configurable

List of all members.

Public Member Functions

virtual const core::ImgBaseacquireImage ()
 grab function grabs an image (destination image is adapted on demand)
void processPropertyChange (const utils::Configurable::Property &prop)
 callback for changed configurable properties
 OpenCVCamGrabber (int dev=0) throw (utils::ICLException)
 Creates new OpenCV based grabber.
 ~OpenCVCamGrabber ()
 Destructor.

Static Public Member Functions

static const std::vector
< GrabberDeviceDescription > & 
getDeviceList (std::string hint, bool rescan)
 simpler version of getDeviceListN detecting a maxinum of 100 devices

Private Attributes

CvCapture * cvc
 Wrapped Device struct.
int device
 number of device
utils::Mutex m_mutex
 locks all accesses to property values
core::ImgBasem_buffer
 Buffer for imagescaling.

Detailed Description

Grabber class that uses OpenCV's grabbing function to grab camera images.


Constructor & Destructor Documentation

Creates new OpenCV based grabber.

Parameters:
devspecifies the device index (0 chooses any available device automatically) you can also use opencv's so called 'domain offsets': current values are:
  • 100 MIL-drivers (proprietary)
  • 200 V4L,V4L2 and VFW,
  • 300 Firewire,
  • 400 TXYZ (proprietary)
  • 500 QuickTime
  • 600 Unicap
  • 700 Direct Show Video Input (e.g. device ID 301 selects the 2nd firewire device)

Destructor.


Member Function Documentation

grab function grabs an image (destination image is adapted on demand)

grab function calls the Grabber-specific acquireImage-method and applies distortion if necessary

If dst is not NULL, it is exploited and filled with image data

Reimplemented from icl::io::Grabber.

static const std::vector<GrabberDeviceDescription>& icl::io::OpenCVCamGrabber::getDeviceList ( std::string  hint,
bool  rescan 
) [static]

simpler version of getDeviceListN detecting a maxinum of 100 devices

Internally, for each device index i=0,1,2,..., a grabber-instance is created. If any of these creation trys returns an error, no further devices are tested.

Parameters:
rescanif this params is a positive or zero integer, it defines the last device ID that is tried internally

callback for changed configurable properties

Reimplemented from icl::io::Grabber.


Member Data Documentation

CvCapture* icl::io::OpenCVCamGrabber::cvc [private]

Wrapped Device struct.

number of device

Buffer for imagescaling.

locks all accesses to property values

adding and adapting properties is not thread safe!

Reimplemented from icl::utils::Configurable.


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