JeVois  1.17
JeVois Smart Embedded Machine Vision Toolkit
Share this page:
pbcvt::matFromNDArrayBoostConverter Struct Reference

#include <jevois/Core/PythonOpenCV.H>

Converter from Python numpy NDarray to cv::Mat.

Definition at line 107 of file PythonOpenCV.H.

Public Member Functions

 matFromNDArrayBoostConverter ()

Static Public Member Functions

static void * convertible (PyObject *object)
 Check if PyObject is an array and can be converted to OpenCV matrix. More...
static void construct (PyObject *object, boost::python::converter::rvalue_from_python_stage1_data *data)
 Construct a Mat from an NDArray object. More...

Constructor & Destructor Documentation

◆ matFromNDArrayBoostConverter()

pbcvt::matFromNDArrayBoostConverter::matFromNDArrayBoostConverter ( )

Definition at line 300 of file PythonOpenCV.C.

Member Function Documentation

◆ construct()

void pbcvt::matFromNDArrayBoostConverter::construct ( PyObject *  object,
boost::python::converter::rvalue_from_python_stage1_data *  data 

Construct a Mat from an NDArray object.

Definition at line 333 of file PythonOpenCV.C.

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

◆ convertible()

void * pbcvt::matFromNDArrayBoostConverter::convertible ( PyObject *  object)

Check if PyObject is an array and can be converted to OpenCV matrix.

Definition at line 306 of file PythonOpenCV.C.

The documentation for this struct was generated from the following files: