Re: [C++-sig] Convert OpenCV class reference return value

2017-04-04 Thread Chris Schnaufer
Thank you for the quick response. I have included the full code (at the bottom of the message) of how I think it "should" work. I've put "should" in quotes because it's based upon my understanding of how to put a converter from C++ to Python together. Compiling this produces two errors (first ab

Re: [C++-sig] Convert OpenCV class reference return value

2017-04-04 Thread Chris Schnaufer
Thank you for the quick response. I have included the full code (at the bottom of the message) of how I think it "should" work. I've put "should" in quotes because it's based upon my understanding of how to put a converter from C++ to Python together. Compiling this produces two errors (first ab

Re: [C++-sig] Convert OpenCV class reference return value

2017-04-04 Thread Stefan Seefeld
Hi Chris, On 03.04.2017 11:58, Chris Schnaufer wrote: > > I have a C++ library where const references to OpenCV types are > returned. Now I’m porting the interface to Python and have hit upon > what looks to be an old issue; there doesn’t appear to be a way to > have boost.python intrinsically con

[C++-sig] Convert OpenCV class reference return value

2017-04-04 Thread Chris Schnaufer
I have a C++ library where const references to OpenCV types are returned. Now I'm porting the interface to Python and have hit upon what looks to be an old issue; there doesn't appear to be a way to have boost.python intrinsically convert a const reference OpenCV type to a Python object (tuple o