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

◆ ERRWRAP2

#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

◆ convert_to_CvMat2()

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

Definition at line 153 of file module_opencv2.cpp.

◆ failmsg()

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

Definition at line 42 of file module_opencv2.cpp.

◆ pyObjectFromRefcount()

static PyObject* pyObjectFromRefcount ( const int *  refcount)
inlinestatic

Definition at line 88 of file module_opencv2.cpp.

◆ pyopencv_from()

PyObject* pyopencv_from ( const Mat &  m)

Definition at line 249 of file module_opencv2.cpp.

◆ refcountFromPyObject()

static int* refcountFromPyObject ( const PyObject *  obj)
inlinestatic

Definition at line 93 of file module_opencv2.cpp.

Variable Documentation

◆ g_numpyAllocator

NumpyAllocator g_numpyAllocator

Definition at line 151 of file module_opencv2.cpp.

◆ opencv_error

PyObject* opencv_error = 0
static

Definition at line 55 of file module_opencv2.cpp.

◆ REFCOUNT_OFFSET

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 Tue Oct 4 2022 02:19:03