OpenCVConverter.h
Go to the documentation of this file.
1 /*
2 * This file is part of ArmarX.
3 *
4 * ArmarX is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 *
8 * ArmarX is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *
16 * @author Fabian Peller (fabian dot peller at kit dot edu)
17 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
18 * GNU General Public License
19 */
20 
21 #pragma once
22 
23 // STD/STL
24 #include <memory>
25 #include <string>
26 
27 // OpenCV
28 #include <opencv2/core/core.hpp>
29 
30 // ArmarX
32 
33 #include <RobotAPI/interface/aron.h>
35 
37 {
39  {
40  AronOpenCVConverter() = delete;
41 
42  public:
43  static cv::Mat ConvertToMat(const data::NDArrayPtr&);
44  static data::NDArrayPtr ConvertFromMat(const cv::Mat&, const armarx::aron::Path& = {});
45  };
46 
47 } // namespace armarx::aron::data::converter
48 
49 // legacy
51 {
53 }
armarx::aron::converter::AronOpenCVConverter
::armarx::aron::data::converter::AronOpenCVConverter AronOpenCVConverter
Definition: OpenCVConverter.h:52
armarx::aron::data::NDArrayPtr
std::shared_ptr< NDArray > NDArrayPtr
Definition: NDArray.h:46
armarx::aron::Path
The Path class.
Definition: Path.h:36
armarx::aron::data::converter::AronOpenCVConverter::ConvertFromMat
static data::NDArrayPtr ConvertFromMat(const cv::Mat &, const armarx::aron::Path &={})
Definition: OpenCVConverter.cpp:52
armarx::aron::data::converter::AronOpenCVConverter
Definition: OpenCVConverter.h:38
armarx::aron::converter
Definition: EigenConverter.h:235
ExpressionException.h
armarx::aron::data::converter::AronOpenCVConverter::ConvertToMat
static cv::Mat ConvertToMat(const data::NDArrayPtr &)
Definition: OpenCVConverter.cpp:33
armarx::aron::data::converter
Definition: aron_conversions.cpp:3
NDArray.h