YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
imageRotation.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2023-2023 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#ifndef YARP_PORTMONITOR_IMAGEROTATION_H
7#define YARP_PORTMONITOR_IMAGEROTATION_H
8
9#include <yarp/os/Bottle.h>
10#include <yarp/os/Things.h>
12#include <yarp/sig/Image.h>
13#include <yarp/cv/Cv.h>
14
23{
24public:
25 bool create(const yarp::os::Property& options) override;
26 void destroy() override;
27
28 bool setparam(const yarp::os::Property& params) override;
29 bool getparam(yarp::os::Property& params) override;
30
31 bool accept(yarp::os::Things& thing) override;
33
34 void getParamsFromCommandLine(std::string carrierString, yarp::os::Property& prop);
35
36private:
37
42
43 std::string m_options_rotate_str = "rotate_cw";
44 std::string m_options_flip_str = "flip_none";
45 cv::RotateFlags m_rot_flags;
46 int m_flip_code;
47
48 cv::Mat m_cvInImage;
49 cv::Mat m_cvOutImage1;
50 cv::Mat m_cvOutImage2;
51};
52
53#endif // YARP_PORTMONITOR_IMAGEROTATION_H
image_rotation: Documentation to be added example usage: yarp connect /grabber/depth:o /yarpview/img:...
bool accept(yarp::os::Things &thing) override
This will be called when the data reach the portmonitor object.
bool setparam(const yarp::os::Property &params) 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.
void getParamsFromCommandLine(std::string carrierString, yarp::os::Property &prop)
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 &params) 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 simple collection of objects that can be described and transmitted in a portable way.
Definition Bottle.h:64
A class for storing options and configuration information.
Definition Property.h:33
Base class for generic things.
Definition Things.h:18
Typed image class.
Definition Image.h:605