YARP  2.3.70
Yet Another Robot Platform
yarp::dev::IFrameGrabberImage Class Referenceabstract

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

#include <yarp/dev/FrameGrabberInterfaces.h>

+ Inheritance diagram for yarp::dev::IFrameGrabberImage:

Public Member Functions

virtual ~IFrameGrabberImage ()
 Destructor. More...
 
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. More...
 
virtual int height () const =0
 Return the height of each frame. More...
 
virtual int width () const =0
 Return the width of each frame. More...
 

Detailed Description

Read a YARP-format image from a device.

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

Definition at line 221 of file FrameGrabberInterfaces.h.

Constructor & Destructor Documentation

◆ ~IFrameGrabberImage()

virtual yarp::dev::IFrameGrabberImage::~IFrameGrabberImage ( )
inlinevirtual

Destructor.

Definition at line 227 of file FrameGrabberInterfaces.h.

Member Function Documentation

◆ getImage()

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
imagethe image to be filled
Returns
true/false upon success/failure

Implemented in yarp::dev::RemoteFrameGrabber, yarp::dev::ServerFrameGrabber, yarp::dev::TestFrameGrabber, yarp::dev::FakeBot, yarp::dev::FfmpegGrabber, yarp::dev::OpenCVGrabber, and yarp::dev::VfwGrabber.

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

◆ height()

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

◆ width()

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

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