7 #ifndef YARP_DEV_IFRAMEGRABBERIMAGE_INL_H
8 #define YARP_DEV_IFRAMEGRABBERIMAGE_INL_H
18 template <
typename ImageType>
24 if (vertices.size() != 2) {
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.
#define yCError(component,...)
#define YARP_DECLARE_LOG_COMPONENT(name)
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.
The main, catch-all namespace for YARP.