LArOpenCV
1
|
#include <NDArrayConverter.h>
Public Member Functions | |
NDArrayConverter () | |
::cv::Mat | toMat (const PyObject *o) |
PyObject * | toNDArray (const ::cv::Mat &mat) |
PyObject * | toNDArray (const ::larcv::Image2D &img) |
PyObject * | toNDArray (const ::larcv::Point2DArray &pt_v) |
Private Member Functions | |
void | init () |
Definition at line 65 of file NDArrayConverter.h.
larcv::convert::NDArrayConverter::NDArrayConverter | ( | ) |
|
private |
Definition at line 202 of file NDArrayConverter.cxx.
Referenced by NDArrayConverter().
cv::Mat larcv::convert::NDArrayConverter::toMat | ( | const PyObject * | o) |
Definition at line 207 of file NDArrayConverter.cxx.
References larcv::convert::failmsg(), larcv::convert::g_numpyAllocator, and larcv::convert::refcountFromPyObject().
PyObject * larcv::convert::NDArrayConverter::toNDArray | ( | const ::cv::Mat & | mat) |
Definition at line 312 of file NDArrayConverter.cxx.
References ERRWRAP2, larcv::convert::g_numpyAllocator, and larcv::convert::pyObjectFromRefcount().
Referenced by larlite::HitImageMaker::GetCanny(), and larlite::HitImageMaker::GetImage().
PyObject * larcv::convert::NDArrayConverter::toNDArray | ( | const ::larcv::Image2D & | img) |
Definition at line 344 of file NDArrayConverter.cxx.
PyObject * larcv::convert::NDArrayConverter::toNDArray | ( | const ::larcv::Point2DArray & | pt_v) |
Definition at line 348 of file NDArrayConverter.cxx.