22 "yarp.carrier.portmonitor.image_rotation",
32 if (options.
check(
"options_rotate"))
34 const std::string val = options.
find(
"options_rotate").
asString();
46 if (options.
check(
"options_flip"))
48 const std::string val = options.
find(
"options_flip").
asString();
bool accept(yarp::os::Things &thing) override
This will be called when the data reach the portmonitor object.
bool setparam(const yarp::os::Property ¶ms) override
This will be called when the portmonitor carrier parameters are set via YARP admin port.
void destroy() override
This will be called when the portmonitor object destroyes.
bool create(const yarp::os::Property &options) override
This will be called when the dll is properly loaded by the portmonitor carrier.
bool getparam(yarp::os::Property ¶ms) override
This will be called when the portmonitor carrier parameters are requested via YARP admin port.
yarp::os::Things & update(yarp::os::Things &thing) override
After data get accpeted in the accept() callback, an instance of that is given to the update function...
A mini-server for performing network communication in the background.
static LogCallback printCallback()
Get current print callback.
static LogType minimumPrintLevel()
Get current minimum print level.
A class for storing options and configuration information.
Value & find(const std::string &key) const override
Gets a value corresponding to a given keyword.
bool check(const std::string &key) const override
Check if there exists a property of the given name.
Base class for generic things.
void setPortWriter(yarp::os::PortWriter *writer)
Set the reference to a PortWriter object.
virtual std::string asString() const
Get string value.
Base class for storing images.
virtual int getPixelCode() const
Gets pixel type identifier.
#define yCError(component,...)
#define yCDebug(component,...)
#define YARP_LOG_COMPONENT(name,...)
An interface to the operating system, including Port based communication.
bool rotate(yarp::sig::Image &OutImg, const yarp::sig::Image &InImg, RotateOption rotateflag=RotateOption::rotate_none, FlipOption flipflag=FlipOption::flip_none)
Rotate and/or flip an image.