support_opencv.h
Go to the documentation of this file.
1 /*
2 * ECVL - European Computer Vision Library
3 * Version: 0.3.4
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 
28 ecvl::Image MatToImage(const cv::Mat& m, ColorType ctype = ColorType::none);
29 
36 ecvl::Image MatVecToImage(const std::vector<cv::Mat>& v);
37 
44 cv::Mat ImageToMat(const Image& img);
45 
46 } // namespace ecvl
47 
48 #endif // ECVL_SUPPORT_OPENCV_H_
Image class.
Definition: image.h:72
ColorType
Enum class representing the ECVL supported color spaces.
Definition: image.h:50
ecvl::Image MatToImage(const cv::Mat &m, ColorType ctype=ColorType::none)
Convert a cv::Mat into an ecvl::Image.
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.