YARP
Yet Another Robot Platform
rosPixelCode.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3
* All rights reserved.
4
*
5
* This software may be modified and distributed under the terms of the
6
* BSD-3-Clause license. See the accompanying LICENSE file for details.
7
*/
8
9
#ifndef YARP_DEV_RGBDSENSORWRAPPER_ROSPIXELCODE_H
10
#define YARP_DEV_RGBDSENSORWRAPPER_ROSPIXELCODE_H
11
12
#include <string>
13
#include <
yarp/sig/Image.h
>
14
15
namespace
yarp
{
16
namespace
dev {
17
namespace
ROSPixelCode {
18
19
#define BAYER_BGGR16 "bayer_bggr16"
20
#define BAYER_BGGR8 "bayer_bggr8"
21
#define BAYER_GBRG16 "bayer_gbrg16"
22
#define BAYER_GBRG8 "bayer_gbrg8"
23
#define BAYER_GRBG16 "bayer_grbg16"
24
#define BAYER_GRBG8 "bayer_grbg8"
25
#define BAYER_RGGB16 "bayer_rggb16"
26
#define BAYER_RGGB8 "bayer_rggb8"
27
#define BGR16 "bgr16"
28
#define BGR8 "bgr8"
29
#define BGRA16 "bgra16"
30
#define BGRA8 "bgra8"
31
#define MONO16 "mono16"
32
#define MONO8 "mono8"
33
#define RGB16 "rgb16"
34
#define RGB8 "rgb8"
35
#define RGBA16 "rgba16"
36
#define RGBA8 "rgba8"
37
#define TYPE_16SC1 "16SC1"
38
#define TYPE_16SC2 "16SC2"
39
#define TYPE_16SC3 "16SC3"
40
#define TYPE_16SC4 "16SC4"
41
#define TYPE_16UC1 "16UC1"
42
#define TYPE_16UC2 "16UC2"
43
#define TYPE_16UC3 "16UC3"
44
#define TYPE_16UC4 "16UC4"
45
#define TYPE_32FC1 "32FC1"
46
#define TYPE_32FC2 "32FC2"
47
#define TYPE_32FC3 "32FC3"
48
#define TYPE_32FC4 "32FC4"
49
#define TYPE_32SC1 "32SC1"
50
#define TYPE_32SC2 "32SC2"
51
#define TYPE_32SC3 "32SC3"
52
#define TYPE_32SC4 "32SC4"
53
#define TYPE_64FC1 "64FC1"
54
#define TYPE_64FC2 "64FC2"
55
#define TYPE_64FC3 "64FC3"
56
#define TYPE_64FC4 "64FC4"
57
#define TYPE_8SC1 "8SC1"
58
#define TYPE_8SC2 "8SC2"
59
#define TYPE_8SC3 "8SC3"
60
#define TYPE_8SC4 "8SC4"
61
#define TYPE_8UC1 "8UC1"
62
#define TYPE_8UC2 "8UC2"
63
#define TYPE_8UC3 "8UC3"
64
#define TYPE_8UC4 "8UC4"
65
#define YUV422 "yuv422"
66
67
std::string
yarp2RosPixelCode
(
int
code);
68
69
int
Ros2YarpPixelCode
(
const
std::string& roscode);
70
71
}}}
72
73
#endif // YARP_DEV_RGBDSENSORWRAPPER_ROSPIXELCODE_H
yarp::dev::ROSPixelCode::yarp2RosPixelCode
std::string yarp2RosPixelCode(int code)
Definition:
rosPixelCode.cpp:15
Image.h
yarp
The main, catch-all namespace for YARP.
Definition:
environment.h:18
yarp::dev::ROSPixelCode::Ros2YarpPixelCode
int Ros2YarpPixelCode(const std::string &roscode)
Definition:
rosPixelCode.cpp:54
YARP
3.4.100+20201223.2+gitb8ea4d712
src
devices
RGBDRosConversionUtils
rosPixelCode.h
Generated on Sun Jan 3 2021 02:46:23 for YARP by
1.8.20