YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
yarp::dev::IFrameGrabberOf< ImageType > Class Template Referenceabstract

Read a YARP-format image (of a specific type) from a device. More...

#include <yarp/dev/IFrameGrabberImage.h>

+ Inheritance diagram for yarp::dev::IFrameGrabberOf< ImageType >:

Public Member Functions

virtual bool getImage (ImageType &image)=0
 Get an image from the frame grabber.
 
virtual bool getImageCrop (cropType_id_t cropType, yarp::sig::VectorOf< std::pair< int, int > > vertices, ImageType &image)
 Get a crop of the image from the frame grabber.
 
- Public Member Functions inherited from yarp::dev::IFrameGrabberImageBase
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.
 

Detailed Description

template<typename ImageType>
class yarp::dev::IFrameGrabberOf< ImageType >

Read a YARP-format image (of a specific type) from a device.

Definition at line 55 of file IFrameGrabberImage.h.

Member Function Documentation

◆ getImage()

template<typename ImageType >
virtual bool yarp::dev::IFrameGrabberOf< ImageType >::getImage ( ImageType image)
pure virtual

Get an image from the frame grabber.

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

Implemented in FrameGrabberCropperOf< ImageType >, yarp::proto::framegrabber::FrameGrabberOf_Forwarder< ImageType, IfVocab, ImgVocab >, yarp::proto::framegrabber::FrameGrabberOf_Forwarder< ImageType, VOCAB_FRAMEGRABBER_IMAGE, VOCAB_RGB_IMAGE >, FrameGrabberOf_ForwarderWithStream< ImageType, IfVocab, ImgVocab >, yarp::proto::framegrabber::FrameGrabberOf_Forwarder< yarp::sig::FlexImage, VOCAB_FRAMEGRABBER_IMAGE, VOCAB_RGB_IMAGE >, FrameGrabberOf_ForwarderWithStream< yarp::sig::FlexImage >, yarp::proto::framegrabber::FrameGrabberOf_Forwarder< yarp::sig::ImageOf< yarp::sig::PixelFloat >, VOCAB_FRAMEGRABBER_IMAGE, VOCAB_RGB_IMAGE >, FrameGrabberOf_ForwarderWithStream< yarp::sig::ImageOf< yarp::sig::PixelFloat > >, realsense2Driver, FakeFrameGrabber, yarp::proto::framegrabber::FrameGrabberOf_Forwarder< yarp::sig::ImageOf< yarp::sig::PixelMono >, IfVocab, VOCAB_RGB_IMAGE >, FrameGrabberOf_ForwarderWithStream< yarp::sig::ImageOf< yarp::sig::PixelMono >, VOCAB_FRAMEGRABBER_IMAGERAW >, USBCameraDriverRgb, USBCameraDriverRaw, V4L_camera, argusCameraDriver, pylonCameraDriver, UltraPythonDriver, FakeBot, FakeFrameGrabber, FfmpegGrabber, FrameGrabberCropperOf< yarp::sig::ImageOf< yarp::sig::PixelRgb > >, yarp::proto::framegrabber::FrameGrabberOf_Forwarder< yarp::sig::ImageOf< yarp::sig::PixelRgb >, VOCAB_FRAMEGRABBER_IMAGE, VOCAB_RGB_IMAGE >, FrameGrabberOf_ForwarderWithStream< yarp::sig::ImageOf< yarp::sig::PixelRgb > >, OpenCVGrabber, USBCameraDriverRgb, and V4L_camera.

◆ getImageCrop()

template<typename ImageType >
bool yarp::dev::IFrameGrabberOf< ImageType >::getImageCrop ( cropType_id_t  cropType,
yarp::sig::VectorOf< std::pair< int, int > >  vertices,
ImageType image 
)
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.

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

Reimplemented in yarp::proto::framegrabber::FrameGrabberOf_Forwarder< ImageType, IfVocab, ImgVocab >, yarp::proto::framegrabber::FrameGrabberOf_Forwarder< ImageType, VOCAB_FRAMEGRABBER_IMAGE, VOCAB_RGB_IMAGE >, FrameGrabberOf_ForwarderWithStream< ImageType, IfVocab, ImgVocab >, yarp::proto::framegrabber::FrameGrabberOf_Forwarder< yarp::sig::FlexImage, VOCAB_FRAMEGRABBER_IMAGE, VOCAB_RGB_IMAGE >, FrameGrabberOf_ForwarderWithStream< yarp::sig::FlexImage >, yarp::proto::framegrabber::FrameGrabberOf_Forwarder< yarp::sig::ImageOf< yarp::sig::PixelFloat >, VOCAB_FRAMEGRABBER_IMAGE, VOCAB_RGB_IMAGE >, FrameGrabberOf_ForwarderWithStream< yarp::sig::ImageOf< yarp::sig::PixelFloat > >, yarp::proto::framegrabber::FrameGrabberOf_Forwarder< yarp::sig::ImageOf< yarp::sig::PixelMono >, IfVocab, VOCAB_RGB_IMAGE >, FrameGrabberOf_ForwarderWithStream< yarp::sig::ImageOf< yarp::sig::PixelMono >, VOCAB_FRAMEGRABBER_IMAGERAW >, FakeFrameGrabber, yarp::proto::framegrabber::FrameGrabberOf_Forwarder< yarp::sig::ImageOf< yarp::sig::PixelRgb >, VOCAB_FRAMEGRABBER_IMAGE, VOCAB_RGB_IMAGE >, and FrameGrabberOf_ForwarderWithStream< yarp::sig::ImageOf< yarp::sig::PixelRgb > >.

Definition at line 18 of file IFrameGrabberImage-inl.h.


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