#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. More... | |
| 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. More... | |
Public Member Functions inherited from yarp::dev::IFrameGrabberImageBase | |
| virtual | ~IFrameGrabberImageBase () |
| Destructor. 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... | |
Definition at line 51 of file IFrameGrabberImage.h.
|
pure virtual |
Get an image from the frame grabber.
| image | the image to be filled |
Implemented in FrameGrabberOf_ForwarderWithStream< yarp::sig::ImageOf< yarp::sig::PixelRgb > >, FrameGrabberOf_ForwarderWithStream< yarp::sig::ImageOf< yarp::sig::PixelMono >, VOCAB_FRAMEGRABBER_IMAGERAW >, FrameGrabberOf_ForwarderWithStream< yarp::sig::ImageOf< yarp::sig::PixelFloat > >, FrameGrabberOf_ForwarderWithStream< yarp::sig::FlexImage >, FrameGrabberOf_ForwarderWithStream< ImageType, IfVocab, ImgVocab >, FrameGrabberCropperOf< ImageType >, yarp::proto::framegrabber::FrameGrabberOf_Forwarder< ImageType, IfVocab, ImgVocab >, and yarp::proto::framegrabber::FrameGrabberOf_Forwarder< ImageType, VOCAB_FRAMEGRABBER_IMAGE, VOCAB_RGB_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.
| 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< yarp::sig::ImageOf< yarp::sig::PixelRgb > >, FrameGrabberOf_ForwarderWithStream< yarp::sig::ImageOf< yarp::sig::PixelMono >, VOCAB_FRAMEGRABBER_IMAGERAW >, FrameGrabberOf_ForwarderWithStream< yarp::sig::ImageOf< yarp::sig::PixelFloat > >, FrameGrabberOf_ForwarderWithStream< yarp::sig::FlexImage >, FrameGrabberOf_ForwarderWithStream< ImageType, IfVocab, ImgVocab >, yarp::proto::framegrabber::FrameGrabberOf_Forwarder< ImageType, IfVocab, ImgVocab >, and yarp::proto::framegrabber::FrameGrabberOf_Forwarder< ImageType, VOCAB_FRAMEGRABBER_IMAGE, VOCAB_RGB_IMAGE >.
Definition at line 19 of file IFrameGrabberImage-inl.h.