Classes | Defines | Enumerations | Functions | Variables
module_opencv3.cpp File Reference
#include "module.hpp"
#include "opencv2/core/types_c.h"
#include "opencv2/opencv_modules.hpp"
#include "pycompat.hpp"
Include dependency graph for module_opencv3.cpp:

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

#define ERRWRAP2 (   expr)
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

anonymous enum
Enumerator:
ARG_NONE 
ARG_MAT 
ARG_SCALAR 

Definition at line 167 of file module_opencv3.cpp.


Function Documentation

int convert_to_CvMat2 ( const PyObject *  o,
cv::Mat &  m 
)

Definition at line 363 of file module_opencv3.cpp.

static int failmsg ( const char *  fmt,
  ... 
) [static]

Definition at line 13 of file module_opencv3.cpp.

static PyObject* failmsgp ( const char *  fmt,
  ... 
) [static]

Definition at line 78 of file module_opencv3.cpp.

template<typename T >
static PyObject* pyopencv_from ( const T src) [static]
PyObject* pyopencv_from ( const Mat &  m)

Definition at line 347 of file module_opencv3.cpp.

template<typename T >
static bool pyopencv_to ( PyObject *  obj,
T p,
const char *  name = "<unknown>" 
) [static]
static bool pyopencv_to ( PyObject *  o,
Mat &  m,
const ArgInfo  info 
) [static]

Definition at line 170 of file module_opencv3.cpp.

template<>
bool pyopencv_to ( PyObject *  o,
Mat &  m,
const char *  name 
)

Definition at line 342 of file module_opencv3.cpp.


Variable Documentation

Definition at line 158 of file module_opencv3.cpp.

PyObject* opencv_error = 0 [static]

Definition at line 11 of file module_opencv3.cpp.



cv_bridge
Author(s): Patrick Mihelich, James Bowman
autogenerated on Wed Aug 9 2017 02:51:41