Scyllarus: C++ Hyperspectral Processing Library
Hyperspectral Image Processing Pipeline
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
ocv_tools.h
Go to the documentation of this file.
1 /****************************************************************************************
2  * SCYLLARUS : C++ HYPERSPECTRAL PROCESSING LIBRARY
3  * ocv_tools.h - OpenCV helper functions and data conversion
4  *
5  * This computer code is subject to copyright:
6  * (c) National ICT Australia Limited (NICTA) 2013-2014 All Rights Reserved.
7  *
8  * Jeremy Oorloff, National ICT Australia (NICTA)
9  *
10  ***************************************************************************************/
11 
12 #ifndef OCV_TOOLS_H_
13 #define OCV_TOOLS_H_
14 
15 
16 #include <opencv2/opencv.hpp>
17 #include <armadillo>
18 
19 namespace scyl
20 {
21 
22 
23  cv::Mat arma_to_ocv(const arma::fmat & in);
24 
25  arma::fmat ocv_to_arma(const cv::Mat & in);
26 
27 
28 }
29 #endif /* OCV_TOOLS_H_ */
arma::fmat ocv_to_arma(const cv::Mat &in)
ocv_to_arma() converts a OpenCV Mat of floats to a Armadillo mat of floats.
Definition: ocv_tools.cpp:39
cv::Mat arma_to_ocv(const arma::fmat &in)
arma_to_ocv() converts a Armadillo mat of floats to a OpenCV Mat of floats.
Definition: ocv_tools.cpp:20