support_opencv.h
Go to the documentation of this file.
1 /*
2 * ECVL - European Computer Vision Library
3 * Version: 1.0.0
4 * copyright (c) 2021, Università degli Studi di Modena e Reggio Emilia (UNIMORE), AImageLab
5 * Authors:
6 * Costantino Grana (costantino.grana@unimore.it)
7 * Federico Bolelli (federico.bolelli@unimore.it)
8 * Michele Cancilla (michele.cancilla@unimore.it)
9 * Laura Canalini (laura.canalini@unimore.it)
10 * Stefano Allegretti (stefano.allegretti@unimore.it)
11 * All rights reserved.
12 */
13 
14 #ifndef ECVL_SUPPORT_OPENCV_H_
15 #define ECVL_SUPPORT_OPENCV_H_
16 
17 #include "image.h"
18 
19 namespace ecvl {
20 
29 ecvl::Image MatToImage(const cv::Mat& m, ColorType ctype = ColorType::none, const std::string& dst_channels = "");
30 
37 ecvl::Image MatVecToImage(const std::vector<cv::Mat>& v);
38 
45 cv::Mat ImageToMat(const Image& img);
46 
47 } // namespace ecvl
48 
49 #endif // ECVL_SUPPORT_OPENCV_H_
Image class.
Definition: image.h:72
ecvl::Image MatToImage(const cv::Mat &m, ColorType ctype=ColorType::none, const std::string &dst_channels="")
Convert a cv::Mat into an ecvl::Image.
ColorType
Enum class representing the ECVL supported color spaces.
Definition: image.h:50
Definition: any.h:69
cv::Mat ImageToMat(const Image &img)
Convert an ECVL Image into OpenCV Mat.
ecvl::Image MatVecToImage(const std::vector< cv::Mat > &v)
Convert a std::vector<cv::Mat> into an ecvl::Image.