Read a YARP-format image (of a specific type) from a device. More...
#include <yarp/dev/IFrameGrabberImage.h>
Public Member Functions | |
virtual yarp::dev::ReturnValue | getImage (ImageType &image)=0 |
Get an image from the frame grabber. | |
virtual yarp::dev::ReturnValue | getImageCrop (yarp::dev::cropType_id_t cropType, std::vector< vertex_t > vertices, ImageType &image) |
Get a crop of the image from the frame grabber. | |
![]() | |
virtual | ~IFrameGrabberImageBase () |
Destructor. | |
virtual int | height () const =0 |
Return the height of each frame. | |
virtual int | width () const =0 |
Return the width of each frame. | |
Read a YARP-format image (of a specific type) from a device.
Definition at line 80 of file IFrameGrabberImage.h.
|
pure virtual |
Get an image from the frame grabber.
image | the image to be filled |
Implemented in FrameGrabberCropperOf< ImageType >, FrameGrabberOf_ForwarderWithStream< ImageType >, FrameGrabberOf_ForwarderWithStream< yarp::sig::FlexImage >, FrameGrabberOf_ForwarderWithStream< yarp::sig::ImageOf< yarp::sig::PixelFloat > >, realsense2Driver, FakeFrameGrabber, FrameGrabberOf_ForwarderWithStream< yarp::sig::ImageOf< yarp::sig::PixelMono > >, USBCameraDriverRgb, USBCameraDriverRaw, V4L_camera, argusCameraDriver, pylonCameraDriver, UltraPythonDriver, FakeBot, FakeFrameGrabber, FrameGrabberCropperOf< yarp::sig::ImageOf< yarp::sig::PixelRgb > >, FrameGrabberOf_ForwarderWithStream< yarp::sig::ImageOf< yarp::sig::PixelRgb > >, OpenCVGrabber, USBCameraDriverRgb, and V4L_camera.
|
virtual |
Get a crop of the image from the frame grabber.
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. If the hardware supports it, it is possible to override this method and request a hardware crop.
cropType | enum specifying how the crop shall be generated |
vertices | the input coordinate (u,v) required by the cropType |
image | the image to be filled |
Reimplemented in FrameGrabberOf_ForwarderWithStream< ImageType >, FrameGrabberOf_ForwarderWithStream< yarp::sig::FlexImage >, FrameGrabberOf_ForwarderWithStream< yarp::sig::ImageOf< yarp::sig::PixelFloat > >, FrameGrabberOf_ForwarderWithStream< yarp::sig::ImageOf< yarp::sig::PixelMono > >, FakeFrameGrabber, and FrameGrabberOf_ForwarderWithStream< yarp::sig::ImageOf< yarp::sig::PixelRgb > >.
Definition at line 18 of file IFrameGrabberImage-inl.h.