#include "module.hpp"
#include "opencv2/core/types_c.h"
#include "opencv2/opencv_modules.hpp"
#include "pycompat.hpp"
Go to the source code of this file.
Classes |
| struct | ArgInfo |
| class | NumpyAllocator |
| class | PyAllowThreads |
| class | PyEnsureGIL |
Defines |
| #define | ERRWRAP2(expr) |
Enumerations |
| enum | { ARG_NONE = 0,
ARG_MAT = 1,
ARG_SCALAR = 2
} |
Functions |
| int | convert_to_CvMat2 (const PyObject *o, cv::Mat &m) |
| static int | failmsg (const char *fmt,...) |
| static PyObject * | failmsgp (const char *fmt,...) |
| template<typename T > |
| static PyObject * | pyopencv_from (const T &src) |
| PyObject * | pyopencv_from (const Mat &m) |
| template<typename T > |
| static bool | pyopencv_to (PyObject *obj, T &p, const char *name="<unknown>") |
| static bool | pyopencv_to (PyObject *o, Mat &m, const ArgInfo info) |
| template<> |
| bool | pyopencv_to (PyObject *o, Mat &m, const char *name) |
Variables |
| NumpyAllocator | g_numpyAllocator |
| static PyObject * | opencv_error = 0 |
Define Documentation
Value:try \
{ \
PyAllowThreads allowThreads; \
expr; \
} \
catch (const cv::Exception &e) \
{ \
PyErr_SetString(opencv_error, e.what()); \
return 0; \
}
Definition at line 64 of file module_opencv3.cpp.
Enumeration Type Documentation
Function Documentation
| static int failmsg |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| [static] |
| static PyObject* failmsgp |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| [static] |
template<typename T >
| static bool pyopencv_to |
( |
PyObject * |
obj, |
|
|
T & |
p, |
|
|
const char * |
name = "<unknown>" |
|
) |
| [static] |
template<>
| bool pyopencv_to |
( |
PyObject * |
o, |
|
|
Mat & |
m, |
|
|
const char * |
name |
|
) |
| |
Variable Documentation