YARP
Yet Another Robot Platform
VfwGrabber.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2007 RobotCub Consortium
3  * Authors: Paul Fitzpatrick
4  * CopyPolicy: Released under the terms of the LGPLv2.1 or later, see LGPL.TXT
5  *
6  */
7 
9 
10 namespace yarp {
11  namespace dev {
12  class VfwGrabber;
13  }
14 }
15 
16 
18 public:
20 
21  virtual ~VfwGrabber() { close(); }
22 
23  virtual bool open(yarp::os::Searchable& config);
24  virtual bool close();
26 
27  virtual int height() const { return _height; }
28  virtual int width() const { return _width; }
29 
30 private:
33 };
34 
35 
Interface implemented by all device drivers.
Definition: DeviceDriver.h:34
virtual ~VfwGrabber()
Definition: VfwGrabber.h:21
delete image
Definition: IplImage.cpp:897
A base class for nested structures that can be searched.
Definition: Searchable.h:56
Read a YARP-format image from a device.
The main, catch-all namespace for YARP.
virtual bool getImage(yarp::sig::ImageOf< yarp::sig::PixelRgb > &image)
Get an rgb image from the frame grabber, if required demosaicking/color reconstruction is applied...
Definition: VfwGrabber.cpp:300
virtual bool close()
Close the DeviceDriver.
Definition: VfwGrabber.cpp:291
virtual bool open(yarp::os::Searchable &config)
Open the DeviceDriver.
Definition: VfwGrabber.cpp:276
virtual int height() const
Return the height of each frame.
Definition: VfwGrabber.h:27
virtual int width() const
Return the width of each frame.
Definition: VfwGrabber.h:28