YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
SegmentationImage.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#ifndef YARP_CARRIER_SEGMENTATION_CONVERTER_H
7#define YARP_CARRIER_SEGMENTATION_CONVERTER_H
8
9#include <yarp/os/Bottle.h>
10#include <yarp/os/Things.h>
12#include <yarp/sig/Image.h>
13
14//example usage:
15//yarp connect /segmentationimage:o /yarpview/img:i tcp+recv.portmonitor+type.dll+file.segmentationimage_to_rgb
16
18{
19 char r;
20 char g;
21 char b;
22};
23
29{
30public:
31 bool create(const yarp::os::Property& options) override;
32 void destroy() override;
33
34 bool setparam(const yarp::os::Property& params) override;
35 bool getparam(yarp::os::Property& params) override;
36
37 bool accept(yarp::os::Things& thing) override;
39
40private:
41 int max_colors;
45 std::map<int, rgbColor> colormap;
46};
47
48#endif // YARP_CARRIER_SEGMENTATION_CONVERTER_H
segmentationimage_to_rgb: Documentation to be added
bool accept(yarp::os::Things &thing) override
This will be called when the data reach the portmonitor object.
void destroy() override
This will be called when the portmonitor object destroyes.
bool setparam(const yarp::os::Property &params) override
This will be called when the portmonitor carrier parameters are set 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...
bool getparam(yarp::os::Property &params) override
This will be called when the portmonitor carrier parameters are requested via YARP admin port.
bool create(const yarp::os::Property &options) override
This will be called when the dll is properly loaded by the portmonitor carrier.
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
Image class with user control of representation details.
Definition Image.h:363