Classes | Macros | 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
 

Macros

#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
 

Macro Definition Documentation

#define ERRWRAP2 (   expr)
Value:
try \
{ \
PyAllowThreads allowThreads; \
expr; \
} \
catch (const cv::Exception &e) \
{ \
PyErr_SetString(opencv_error, e.what()); \
return 0; \
}
static PyObject * opencv_error

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)
inlinestatic

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)
inlinestatic

Definition at line 93 of file module_opencv2.cpp.

Variable Documentation

NumpyAllocator g_numpyAllocator

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 Dec 12 2019 03:52:01