17template<>
struct type_code<
yarp::sig::PixelMono16> : std::integral_constant<int, CV_16UC1> {};
18template<>
struct type_code<
yarp::sig::PixelMonoSigned> : std::integral_constant<int, CV_8SC1> {};
20template<>
struct type_code<
yarp::sig::PixelInt> : std::integral_constant<int, CV_32SC1> {};
21template<>
struct type_code<
yarp::sig::PixelBgr> : std::integral_constant<int, CV_8UC3> {};
22template<>
struct type_code<
yarp::sig::PixelRgb> : std::integral_constant<int, CV_8UC3> {};
23template<>
struct type_code<
yarp::sig::PixelRgbSigned> : std::integral_constant<int, CV_8SC3> {};
24template<>
struct type_code<
yarp::sig::PixelRgbFloat> : std::integral_constant<int, CV_32FC3> {};
25template<>
struct type_code<
yarp::sig::PixelRgbInt> : std::integral_constant<int, CV_32SC3> {};
26template<>
struct type_code<
yarp::sig::PixelHsv> : std::integral_constant<int, CV_8UC3> {};
27template<>
struct type_code<
yarp::sig::PixelHsvFloat> : std::integral_constant<int, CV_32FC3> {};
28template<>
struct type_code<
yarp::sig::PixelRgba> : std::integral_constant<int, CV_8UC4> {};
29template<>
struct type_code<
yarp::sig::PixelBgra> : std::integral_constant<int, CV_8UC4> {};
41template<>
struct convert_code_to_cv<
yarp::sig::PixelRgb> : std::integral_constant<int, ::cv::ColorConversionCodes::COLOR_RGB2BGR> {};
42template<>
struct convert_code_to_cv<
yarp::sig::PixelRgbSigned> : std::integral_constant<int, ::cv::ColorConversionCodes::COLOR_RGB2BGR> {};
43template<>
struct convert_code_to_cv<
yarp::sig::PixelRgbFloat> : std::integral_constant<int, ::cv::ColorConversionCodes::COLOR_RGB2BGR> {};
44template<>
struct convert_code_to_cv<
yarp::sig::PixelRgbInt> : std::integral_constant<int, ::cv::ColorConversionCodes::COLOR_RGB2BGR> {};
45template<>
struct convert_code_to_cv<
yarp::sig::PixelHsv> : std::integral_constant<int, ::cv::ColorConversionCodes::COLOR_HSV2BGR> {};
46template<>
struct convert_code_to_cv<
yarp::sig::PixelHsvFloat> : std::integral_constant<int, ::cv::ColorConversionCodes::COLOR_HSV2BGR> {};
47template<>
struct convert_code_to_cv<
yarp::sig::PixelRgba> : std::integral_constant<int, ::cv::ColorConversionCodes::COLOR_RGBA2BGRA> {};
59template<>
struct convert_code_from_cv<
yarp::sig::PixelRgb> : std::integral_constant<int, ::cv::ColorConversionCodes::COLOR_BGR2RGB> {};
60template<>
struct convert_code_from_cv<
yarp::sig::PixelRgbSigned> : std::integral_constant<int, ::cv::ColorConversionCodes::COLOR_BGR2RGB> {};
61template<>
struct convert_code_from_cv<
yarp::sig::PixelRgbFloat> : std::integral_constant<int, ::cv::ColorConversionCodes::COLOR_BGR2RGB> {};
62template<>
struct convert_code_from_cv<
yarp::sig::PixelRgbInt> : std::integral_constant<int, ::cv::ColorConversionCodes::COLOR_BGR2RGB> {};
63template<>
struct convert_code_from_cv<
yarp::sig::PixelHsv> : std::integral_constant<int, ::cv::ColorConversionCodes::COLOR_BGR2HSV> {};
64template<>
struct convert_code_from_cv<
yarp::sig::PixelHsvFloat> : std::integral_constant<int, ::cv::ColorConversionCodes::COLOR_BGR2HSV> {};
65template<>
struct convert_code_from_cv<
yarp::sig::PixelRgba> : std::integral_constant<int, ::cv::ColorConversionCodes::COLOR_BGRA2RGBA> {};