JeVois  1.20
JeVois Smart Embedded Machine Vision Toolkit
Share this page:
pbcvt Namespace Reference

Classes

struct  matFromNDArrayBoostConverter
 Converter from Python numpy NDarray to cv::Mat. More...
 
struct  matToNDArrayBoostConverter
 
class  NumpyAllocator
 
class  PyAllowThreads
 
class  PyEnsureGIL
 

Enumerations

enum  { ARG_NONE = 0, ARG_MAT = 1, ARG_SCALAR = 2 }
 

Functions

PyObject * fromMatToNDArray (const Mat &m)
 
Mat fromNDArrayToMat (PyObject *o)
 
int failmsg (const char *fmt,...)
 

Variables

PyObject * opencv_error = nullptr
 
NumpyAllocator g_numpyAllocator
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
ARG_NONE 
ARG_MAT 
ARG_SCALAR 

Definition at line 87 of file PythonOpenCV.C.

Function Documentation

◆ failmsg()

int pbcvt::failmsg ( const char *  fmt,
  ... 
)

Definition at line 56 of file PythonOpenCV.C.

Referenced by fromNDArrayToMat().

◆ fromMatToNDArray()

PyObject * pbcvt::fromMatToNDArray ( const Mat &  m)

Definition at line 164 of file PythonOpenCV.C.

References ERRWRAP2, g_numpyAllocator, and o.

◆ fromNDArrayToMat()

Mat pbcvt::fromNDArrayToMat ( PyObject *  o)

Definition at line 179 of file PythonOpenCV.C.

References pbcvt::NumpyAllocator::allocate(), failmsg(), g_numpyAllocator, and o.

Variable Documentation

◆ g_numpyAllocator

◆ opencv_error

PyObject * pbcvt::opencv_error = nullptr

Definition at line 52 of file PythonOpenCV.C.