Read a YARP-format image from a device. More...
#include <yarp/dev/FrameGrabberInterfaces.h>
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 bool | getImageCrop (cropType_id_t cropType, yarp::sig::VectorOf< std::pair< int, int > > vertices, yarp::sig::ImageOf< yarp::sig::PixelRgb > &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... | |
Read a YARP-format image from a device.
Definition at line 240 of file FrameGrabberInterfaces.h.
|
inlinevirtual |
Destructor.
Definition at line 246 of file FrameGrabberInterfaces.h.
|
pure virtual |
Get an rgb image from the frame grabber, if required demosaicking/color reconstruction is applied.
image | the image to be filled |
Implemented in USBCameraDriverRgb, ServerFrameGrabber, RemoteFrameGrabber, OpenCVGrabber, FfmpegGrabber, FakeFrameGrabber, and FakeBot.
|
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.
cropType | enum specifying how the crop shall be generated, defined at FrameGrabberInterfaces.h |
vertices | the input coordinate (u,v) required by the cropType |
image | the image to be filled |
Reimplemented in RemoteFrameGrabber.
Definition at line 272 of file FrameGrabberInterfaces.h.
|
pure virtual |
Return the height of each frame.
Implemented in USBCameraDriverRgb, ServerFrameGrabber, RemoteFrameGrabber, OpenCVGrabber, FfmpegGrabber, FakeFrameGrabber, and FakeBot.
|
pure virtual |
Return the width of each frame.
Implemented in USBCameraDriverRgb, ServerFrameGrabber, RemoteFrameGrabber, OpenCVGrabber, FfmpegGrabber, FakeFrameGrabber, and FakeBot.