Classes | Defines | Functions | Variables
module_opencv2.cpp File Reference
#include "module.hpp"
Include dependency graph for module_opencv2.cpp:

Go to the source code of this file.

Classes

class  NumpyAllocator
class  PyAllowThreads

Defines

#define ERRWRAP2(expr)

Functions

int convert_to_CvMat2 (const PyObject *o, cv::Mat &m)
static int failmsg (const char *fmt,...)
static PyObject * pyObjectFromRefcount (const int *refcount)
PyObject * pyopencv_from (const Mat &m)
static int * refcountFromPyObject (const PyObject *obj)

Variables

NumpyAllocator g_numpyAllocator
static PyObject * opencv_error = 0
static size_t REFCOUNT_OFFSET

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 69 of file module_opencv2.cpp.


Function Documentation

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

Definition at line 153 of file module_opencv2.cpp.

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

Definition at line 42 of file module_opencv2.cpp.

static PyObject* pyObjectFromRefcount ( const int *  refcount) [inline, static]

Definition at line 88 of file module_opencv2.cpp.

PyObject* pyopencv_from ( const Mat &  m)

Definition at line 249 of file module_opencv2.cpp.

static int* refcountFromPyObject ( const PyObject *  obj) [inline, static]

Definition at line 93 of file module_opencv2.cpp.


Variable Documentation

Definition at line 151 of file module_opencv2.cpp.

PyObject* opencv_error = 0 [static]

Definition at line 55 of file module_opencv2.cpp.

size_t REFCOUNT_OFFSET [static]
Initial value:
 ( size_t )&((( PyObject* )0)->ob_refcnt ) +
( 0x12345678 != *( const size_t* )"\x78\x56\x34\x12\0\0\0\0\0" )*sizeof( int )

Definition at line 84 of file module_opencv2.cpp.



cv_bridge
Author(s): Patrick Mihelich, James Bowman
autogenerated on Thu Jun 6 2019 21:23:27