#include <networkWrappers/frameGrabber_nwc_yarp/FrameGrabber_nwc_yarp.h>
Public Member Functions | |
FrameGrabberOf_ForwarderWithStream (yarp::os::Port &rpcPort) | |
~FrameGrabberOf_ForwarderWithStream () override=default | |
int | height () const override |
Return the height of each frame. | |
int | width () const override |
Return the width of each frame. | |
bool | getImage (ImageType &image) override |
Get an image from the frame grabber. | |
bool | getImageCrop (cropType_id_t cropType, yarp::sig::VectorOf< std::pair< int, int > > vertices, ImageType &image) override |
Get a crop of the image from the frame grabber. | |
void | setStreamReceiver (StreamReceiver *m_streamReceiver) |
![]() | |
FrameGrabberOf_Forwarder (yarp::os::Port &port) | |
~FrameGrabberOf_Forwarder () override=default | |
![]() | |
virtual | ~IFrameGrabberImageBase () |
Destructor. | |
Definition at line 52 of file FrameGrabber_nwc_yarp.h.
FrameGrabberOf_ForwarderWithStream< ImageType, IfVocab, ImgVocab >::FrameGrabberOf_ForwarderWithStream | ( | yarp::os::Port & | rpcPort | ) |
Definition at line 107 of file FrameGrabber_nwc_yarp.cpp.
|
overridedefault |
|
overridevirtual |
Get an image from the frame grabber.
image | the image to be filled |
Reimplemented from yarp::proto::framegrabber::FrameGrabberOf_Forwarder< ImageType, IfVocab, ImgVocab >.
Definition at line 141 of file FrameGrabber_nwc_yarp.cpp.
|
overridevirtual |
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 from yarp::proto::framegrabber::FrameGrabberOf_Forwarder< ImageType, IfVocab, ImgVocab >.
Definition at line 154 of file FrameGrabber_nwc_yarp.cpp.
|
overridevirtual |
Return the height of each frame.
Reimplemented from yarp::proto::framegrabber::FrameGrabberOf_Forwarder< ImageType, IfVocab, ImgVocab >.
Definition at line 115 of file FrameGrabber_nwc_yarp.cpp.
void FrameGrabberOf_ForwarderWithStream< ImageType, IfVocab, ImgVocab >::setStreamReceiver | ( | StreamReceiver * | m_streamReceiver | ) |
Definition at line 197 of file FrameGrabber_nwc_yarp.cpp.
|
overridevirtual |
Return the width of each frame.
Reimplemented from yarp::proto::framegrabber::FrameGrabberOf_Forwarder< ImageType, IfVocab, ImgVocab >.
Definition at line 128 of file FrameGrabber_nwc_yarp.cpp.