LArOpenCV  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
Classes | Namespaces | Macros | Enumerations | Functions | Variables
NDArrayConverter.h File Reference
#include <Python.h>
#include <opencv2/opencv.hpp>
#include <opencv2/core/core.hpp>
#include <numpy/ndarrayobject.h>
#include "Core/Image2D.h"
#include "Core/Point2DArray.h"

Go to the source code of this file.

Classes

class  larcv::convert::NDArrayConverter
 

Namespaces

 larcv
 C++ namespace for developping LArTPC software interface to OpenCV based algorithm tools (LArOpenCV)
 
 larcv::convert
 C++ namespace for a collection of Python<=>LArOpenCV C++ object conversion functions/classes.
 

Macros

#define ERRWRAP2(expr)
 

Enumerations

enum  { larcv::convert::ARG_NONE = 0, larcv::convert::ARG_MAT = 1, larcv::convert::ARG_SCALAR = 2 }
 

Functions

static int larcv::convert::failmsg (const char *fmt,...)
 
static PyObjectlarcv::convert::pyObjectFromRefcount (const int *refcount)
 
static int * larcv::convert::refcountFromPyObject (const PyObject *obj)
 

Variables

static PyObjectopencv_error = 0
 
static size_t larcv::convert::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; \
}

Definition at line 33 of file NDArrayConverter.h.

Referenced by larcv::convert::NDArrayConverter::toNDArray().

Variable Documentation

PyObject* opencv_error = 0
static

Definition at line 17 of file NDArrayConverter.h.