Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008 #ifndef PANO_PY_OPENCV_H_
00009 #define PANO_PY_OPENCV_H_
00010 #include <opencv2/core/core.hpp>
00011 #include <boost/python.hpp>
00012 namespace pano_py{
00017 cv::Mat convertObj2Mat(boost::python::object image);
00018
00019 cv::Mat convertNumpy2Mat(boost::python::object np);
00020
00021 bool numpy_to_mat(const PyObject* o, cv::Mat& m, const char* name = "<unknown>", bool allowND=true);
00022
00023 int failmsg(const char *fmt, ...);
00024
00025
00026
00027 }
00028
00029
00030 #endif