YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
rosPixelCode.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2023 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#ifndef YARP_DEV_RGBDSENSORWRAPPER_ROSPIXELCODE_H
7#define YARP_DEV_RGBDSENSORWRAPPER_ROSPIXELCODE_H
8
9#include <string>
10#include <yarp/sig/Image.h>
11
13
14#define BAYER_BGGR16 "bayer_bggr16"
15#define BAYER_BGGR8 "bayer_bggr8"
16#define BAYER_GBRG16 "bayer_gbrg16"
17#define BAYER_GBRG8 "bayer_gbrg8"
18#define BAYER_GRBG16 "bayer_grbg16"
19#define BAYER_GRBG8 "bayer_grbg8"
20#define BAYER_RGGB16 "bayer_rggb16"
21#define BAYER_RGGB8 "bayer_rggb8"
22#define BGR16 "bgr16"
23#define BGR8 "bgr8"
24#define BGRA16 "bgra16"
25#define BGRA8 "bgra8"
26#define MONO16 "mono16"
27#define MONO8 "mono8"
28#define RGB16 "rgb16"
29#define RGB8 "rgb8"
30#define RGBA16 "rgba16"
31#define RGBA8 "rgba8"
32#define TYPE_16SC1 "16SC1"
33#define TYPE_16SC2 "16SC2"
34#define TYPE_16SC3 "16SC3"
35#define TYPE_16SC4 "16SC4"
36#define TYPE_16UC1 "16UC1"
37#define TYPE_16UC2 "16UC2"
38#define TYPE_16UC3 "16UC3"
39#define TYPE_16UC4 "16UC4"
40#define TYPE_32FC1 "32FC1"
41#define TYPE_32FC2 "32FC2"
42#define TYPE_32FC3 "32FC3"
43#define TYPE_32FC4 "32FC4"
44#define TYPE_32SC1 "32SC1"
45#define TYPE_32SC2 "32SC2"
46#define TYPE_32SC3 "32SC3"
47#define TYPE_32SC4 "32SC4"
48#define TYPE_64FC1 "64FC1"
49#define TYPE_64FC2 "64FC2"
50#define TYPE_64FC3 "64FC3"
51#define TYPE_64FC4 "64FC4"
52#define TYPE_8SC1 "8SC1"
53#define TYPE_8SC2 "8SC2"
54#define TYPE_8SC3 "8SC3"
55#define TYPE_8SC4 "8SC4"
56#define TYPE_8UC1 "8UC1"
57#define TYPE_8UC2 "8UC2"
58#define TYPE_8UC3 "8UC3"
59#define TYPE_8UC4 "8UC4"
60#define YUV422 "yuv422"
61
62std::string yarp2RosPixelCode(int code);
63
64int Ros2YarpPixelCode(const std::string& roscode);
65
66} // namespace yarp::dev::ROSPixelCode
67
68#endif // YARP_DEV_RGBDSENSORWRAPPER_ROSPIXELCODE_H
std::string yarp2RosPixelCode(int code)
int Ros2YarpPixelCode(const std::string &roscode)