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

#include <frameGrabberCropper/FrameGrabberCropper.h>

+ Inheritance diagram for FrameGrabberCropperOf< ImageType >:

Public Member Functions

 ~FrameGrabberCropperOf () override=default
 
bool getImage (ImageType &image) override
 Get an image from the frame grabber.
 
int height () const override
 Return the height of each frame.
 
int width () const override
 Return the width of each frame.
 
- Public Member Functions inherited from yarp::dev::IFrameGrabberOf< ImageType >
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.
 

Protected Attributes

yarp::dev::IFrameGrabberOf< ImageType > * iFrameGrabberOf {nullptr}
 
yarp::sig::VectorOf< std::pair< int, int > > vertices
 

Static Protected Attributes

static constexpr cropType_id_t cropType {YARP_CROP_RECT}
 

Detailed Description

template<typename ImageType>
class FrameGrabberCropperOf< ImageType >

Definition at line 22 of file FrameGrabberCropper.h.

Constructor & Destructor Documentation

◆ ~FrameGrabberCropperOf()

template<typename ImageType >
FrameGrabberCropperOf< ImageType >::~FrameGrabberCropperOf ( )
overridedefault

Member Function Documentation

◆ getImage()

template<typename ImageType >
bool FrameGrabberCropperOf< ImageType >::getImage ( ImageType image)
inlineoverridevirtual

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 33 of file FrameGrabberCropper.h.

◆ height()

template<typename ImageType >
int FrameGrabberCropperOf< ImageType >::height ( ) const
inlineoverridevirtual

Return the height of each frame.

Returns
image height

Implements yarp::dev::IFrameGrabberImageBase.

Definition at line 41 of file FrameGrabberCropper.h.

◆ width()

template<typename ImageType >
int FrameGrabberCropperOf< ImageType >::width ( ) const
inlineoverridevirtual

Return the width of each frame.

Returns
image width

Implements yarp::dev::IFrameGrabberImageBase.

Definition at line 49 of file FrameGrabberCropper.h.

Member Data Documentation

◆ cropType

template<typename ImageType >
constexpr cropType_id_t FrameGrabberCropperOf< ImageType >::cropType {YARP_CROP_RECT}
staticconstexprprotected

Definition at line 27 of file FrameGrabberCropper.h.

◆ iFrameGrabberOf

template<typename ImageType >
yarp::dev::IFrameGrabberOf<ImageType>* FrameGrabberCropperOf< ImageType >::iFrameGrabberOf {nullptr}
protected

Definition at line 26 of file FrameGrabberCropper.h.

◆ vertices

template<typename ImageType >
yarp::sig::VectorOf<std::pair<int, int> > FrameGrabberCropperOf< ImageType >::vertices
protected

Definition at line 28 of file FrameGrabberCropper.h.


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