YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
FrameGrabberOf_ForwarderWithStream< ImageType > Class Template Reference

#include <networkWrappers/frameGrabber_nwc_yarp/FrameGrabber_nwc_yarp.h>

+ Inheritance diagram for FrameGrabberOf_ForwarderWithStream< ImageType >:

Public Member Functions

 FrameGrabberOf_ForwarderWithStream (FrameGrabberMsgs *thriftClient)
 
 ~FrameGrabberOf_ForwarderWithStream () override=default
 
int height () const override
 Return the height of each frame.
 
int width () const override
 Return the width of each frame.
 
yarp::dev::ReturnValue getImage (ImageType &image) override
 Get an image from the frame grabber.
 
yarp::dev::ReturnValue getImageCrop (yarp::dev::cropType_id_t cropType, std::vector< yarp::dev::vertex_t > vertices, ImageType &image) override
 Get a crop of the image from the frame grabber.
 
void setStreamReceiver (StreamReceiver *m_streamReceiver)
 
- Public Member Functions inherited from yarp::dev::IFrameGrabberImageBase
virtual ~IFrameGrabberImageBase ()
 Destructor.
 

Detailed Description

template<typename ImageType>
class FrameGrabberOf_ForwarderWithStream< ImageType >

Definition at line 28 of file FrameGrabber_nwc_yarp.h.

Constructor & Destructor Documentation

◆ FrameGrabberOf_ForwarderWithStream()

◆ ~FrameGrabberOf_ForwarderWithStream()

Member Function Documentation

◆ getImage()

template<typename ImageType >
yarp::dev::ReturnValue FrameGrabberOf_ForwarderWithStream< ImageType >::getImage ( ImageType image)
overridevirtual

Get an image from the frame grabber.

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

Implements yarp::dev::IFrameGrabberOf< ImageType >.

Definition at line 79 of file FrameGrabber_nwc_yarp.cpp.

◆ getImageCrop()

template<typename ImageType >
yarp::dev::ReturnValue FrameGrabberOf_ForwarderWithStream< ImageType >::getImageCrop ( yarp::dev::cropType_id_t  cropType,
std::vector< yarp::dev::vertex_t vertices,
ImageType image 
)
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.

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 from yarp::dev::IFrameGrabberOf< ImageType >.

Definition at line 105 of file FrameGrabber_nwc_yarp.cpp.

◆ height()

template<typename ImageType >
int FrameGrabberOf_ForwarderWithStream< ImageType >::height ( ) const
overridevirtual

Return the height of each frame.

Returns
image height

Implements yarp::dev::IFrameGrabberImageBase.

Definition at line 31 of file FrameGrabber_nwc_yarp.cpp.

◆ setStreamReceiver()

template<typename ImageType >
void FrameGrabberOf_ForwarderWithStream< ImageType >::setStreamReceiver ( StreamReceiver m_streamReceiver)

Definition at line 167 of file FrameGrabber_nwc_yarp.cpp.

◆ width()

template<typename ImageType >
int FrameGrabberOf_ForwarderWithStream< ImageType >::width ( ) const
overridevirtual

Return the width of each frame.

Returns
image width

Implements yarp::dev::IFrameGrabberImageBase.

Definition at line 54 of file FrameGrabber_nwc_yarp.cpp.


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