How to grab cropped images from a remote source using the yarp::dev::IFrameGrabberImage interface.
How to grab cropped images from a remote source using the yarp::dev::IFrameGrabberImage interface.
- See also
- yarp::dev::IFrameGrabberImage::getImageCrop
int main(int argc, char* argv[])
{
out.
open(
"/test_yarp_crop");
p.
put(
"device",
"fakeFrameGrabber");
while (true) {
}
return 0;
}
bool view(T *&x)
Get an interface to the device driver.
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.
A container for a device driver.
bool open(const std::string &txt)
Construct and configure a device by its common name.
A mini-server for performing network communication in the background.
bool open(const std::string &name) override
Start port operation, with a specific name, with automatically-chosen network parameters.
void write(bool forceStrict=false)
Write the current object being returned by BufferedPort::prepare.
T & prepare()
Access the object which will be transmitted by the next call to yarp::os::BufferedPort::write.
Utilities for manipulating the YARP network, including initialization and shutdown.
A class for storing options and configuration information.
void put(const std::string &key, const std::string &value)
Associate the given key with the given string.
The main, catch-all namespace for YARP.