7#ifndef YARP_DEV_IFRAMEGRABBERIMAGE_INL_H
8#define YARP_DEV_IFRAMEGRABBERIMAGE_INL_H
17template <
typename ImageType>
23 if (vertices.
size() != 2) {
28 bool b = getImage(full);
const yarp::os::LogComponent & IFRAMEGRABBEROF()
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.
size_t width() const
Gets width of image in pixels.
size_t height() const
Gets height of image in pixels.
#define yCError(component,...)
#define YARP_DECLARE_LOG_COMPONENT(name)
For streams capable of holding different kinds of content, check what they actually have.
bool cropRect(const yarp::sig::Image &inImg, const std::pair< unsigned int, unsigned int > &vertex1, const std::pair< unsigned int, unsigned int > &vertex2, yarp::sig::Image &outImg)
Crop a rectangle area out of an image given two opposite vertices.