[C++-sig] [Boost.Python] Problems to make a wrapper of a OpenCV program

2010-07-19 Thread Filipe M. S. de Campos
Hello! I've been searching during the last few days a way to solve the problem I'm having, but I can't find the apropriate answer. I hope somebody can help me. I have written a program in C++ that uses the opencv library. It is compiling and working fine. (I use this to compile the code: gcc -o f

Re: [C++-sig] Pickle python subclass of C++ interface

2010-07-19 Thread John Reid
John Reid wrote: John Reid wrote: John Reid wrote: Ralf W. Grosse-Kunstleve wrote: Ok I'll give that a whirl. I was hoping to avoid doing __getinitargs__() for each subclass as I have quite a few of them. If I didn't have a C++ base class then the pickling would just work as is. There's

Re: [C++-sig] Pickle python subclass of C++ interface

2010-07-19 Thread John Reid
John Reid wrote: John Reid wrote: Ralf W. Grosse-Kunstleve wrote: Ok I'll give that a whirl. I was hoping to avoid doing __getinitargs__() for each subclass as I have quite a few of them. If I didn't have a C++ base class then the pickling would just work as is. There's no way I can get back

Re: [C++-sig] [patch] Make boost python accessible by multiplethreads

2010-07-19 Thread Matthew Scouten (TT)
I agree that automatic GIL Management should not go main line unless it is done right. I would like some facilities for manual GIL management though. I have a RAII object for taking the GIL around a virtual function, and another for freeing the GIL around a call in. Something like that would b

Re: [C++-sig] reuse C++ classes that have been wrapped with SWIG

2010-07-19 Thread Hans Meine
On Thursday 15 July 2010 13:35:55 Marco Selinger wrote: > There is a complete SWIG wrapper for the OpenCV > (http://opencv.willowgarage.com) project. > > I am developing a small image processing application that uses some of the > OpenCV classes. This application will be wrapped using Boost.Python