Tagged Questions
5
votes
3answers
2k views
how to return numpy.array from boost::python?
I would like to return some data from c++ code as a numpy.array object. I had a look at boost::python::numeric, but its documentation is very terse. Can I get an example of e.g. returning a (not very ...
2
votes
1answer
309 views
Exposing OpenCV-based C++ function with Mat/Numpy conversion to Python
I've ran into a problem trying to expose dynamic C++ library functions, linked to OpenCV and using OpenCV's Mat datatype, to Python 2.7 with the use of Numpy ndarray.
I've come up with a solution ...