Public Member Functions

yarp::dev::IFrameGrabberImage Class Reference
[Media Interfaces]

Read a YARP-format image from a device. More...

#include <FrameGrabberInterfaces.h>

Inheritance diagram for yarp::dev::IFrameGrabberImage:
yarp::dev::FakeBot yarp::dev::FfmpegGrabber yarp::dev::FirewireCamera yarp::dev::OpenCVGrabber yarp::dev::VfwGrabber

Public Member Functions

virtual ~IFrameGrabberImage ()
 Destructor.
virtual bool getImage (yarp::sig::ImageOf< yarp::sig::PixelRgb > &image)=0
 Get an rgb image from the frame grabber, if required demosaicking/color reconstruction is applied.
virtual int height () const =0
 Return the height of each frame.
virtual int width () const =0
 Return the width of each frame.

Detailed Description

Read a YARP-format image from a device.

Examples:

dev/file_grabber.cpp, and dev/grabber_client.cpp.


Constructor & Destructor Documentation

virtual yarp::dev::IFrameGrabberImage::~IFrameGrabberImage (  )  [inline, virtual]

Destructor.


Member Function Documentation

virtual bool yarp::dev::IFrameGrabberImage::getImage ( yarp::sig::ImageOf< yarp::sig::PixelRgb > &  image  )  [pure virtual]

Get an rgb image from the frame grabber, if required demosaicking/color reconstruction is applied.

Parameters:
image the image to be filled
Returns:
true/false upon success/failure

Implemented in yarp::dev::VfwGrabber.

Examples:
dev/file_grabber.cpp, and dev/grabber_client.cpp.

Referenced by main(), and PolyDriverTest::testBasic().

virtual int yarp::dev::IFrameGrabberImage::height (  )  const [pure virtual]

Return the height of each frame.

Returns:
image height

Implemented in yarp::dev::VfwGrabber.

virtual int yarp::dev::IFrameGrabberImage::width (  )  const [pure virtual]

Return the width of each frame.

Returns:
image width

Implemented in yarp::dev::VfwGrabber.


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