YARP
Yet Another Robot Platform
yarp::dev::IFrameGrabberImageRaw Class Referenceabstract

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

#include <yarp/dev/FrameGrabberInterfaces.h>

+ Inheritance diagram for yarp::dev::IFrameGrabberImageRaw:

Public Member Functions

virtual ~IFrameGrabberImageRaw ()
 Destructor. More...
 
virtual bool getImage (yarp::sig::ImageOf< yarp::sig::PixelMono > &image)=0
 Get a raw image from the frame grabber. More...
 
virtual bool getImageCrop (cropType_id_t cropType, yarp::sig::VectorOf< std::pair< int, int > > vertices, yarp::sig::ImageOf< yarp::sig::PixelMono > &image)
 Get a crop of the 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.

Definition at line 292 of file FrameGrabberInterfaces.h.

Constructor & Destructor Documentation

◆ ~IFrameGrabberImageRaw()

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

Destructor.

Definition at line 298 of file FrameGrabberInterfaces.h.

Member Function Documentation

◆ getImage()

virtual bool yarp::dev::IFrameGrabberImageRaw::getImage ( yarp::sig::ImageOf< yarp::sig::PixelMono > &  image)
pure virtual

Get a raw image from the frame grabber.

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

Implemented in USBCameraDriverRaw, USBCameraDriverRgb, and FakeFrameGrabber.

◆ getImageCrop()

virtual bool yarp::dev::IFrameGrabberImageRaw::getImageCrop ( cropType_id_t  cropType,
yarp::sig::VectorOf< std::pair< int, int > >  vertices,
yarp::sig::ImageOf< yarp::sig::PixelMono > &  image 
)
inlinevirtual

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

Note: this is not configuring the camera sensor to acquire a crop of the image, nor to generate a cropped version of the streaming. Instead, the full image is acquired and then a crop is created from it. The crop is meant to be created by the image producer upon user request via RPC call.

Parameters
cropTypeenum specifying how the crop shall be generated, defined at FrameGrabberInterfaces.h
verticesthe input coordinate (u,v) required by the cropType
imagethe image to be filled
Returns
true/false upon success/failure

Definition at line 322 of file FrameGrabberInterfaces.h.

◆ height()

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

Return the height of each frame.

Returns
image height

Implemented in USBCameraDriverRaw, USBCameraDriverRgb, and FakeFrameGrabber.

◆ width()

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

Return the width of each frame.

Returns
image width

Implemented in USBCameraDriverRaw, USBCameraDriverRgb, and FakeFrameGrabber.


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