I also had to add a dummy pointer to the CvArr class
/********* .pxd ***********/
cimport c_cxcore
cimport c_highgui
cdef class CvArr:
cdef c_cxcore.CvArr* dummyptr
cdef c_cxcore.CvArr* handle(CvArr)
cdef class IplImage(CvArr):
cdef c_cxcore.IplImage* thisptr
cdef int needs_free
cdef c_cxcore.CvArr* handle(IplImage)
/********* .pxy *************/
cdef class CvArr:
cdef c_cxcore.CvArr* handle(self):
return self.dummyptr
On Fri, May 22, 2009 at 12:20 PM, Chris Colbert <[email protected]> wrote:
> alright I figured it out.
>
> Lisandro, your method worked perfect. the problem was in my function
> prototype in the .pxd file.
>
> I had to change it to this (fixed the argument types):
>
> /********* .pxd ***********/
> cimport c_cxcore
> cimport c_highgui
>
> cdef class CvArr:
> cdef c_cxcore.CvArr* handle(CvArr)
>
> cdef class IplImage(CvArr):
> cdef c_cxcore.IplImage* thisptr
> cdef int needs_free
> cdef c_cxcore.CvArr* handle(IplImage)
>
>
>
> thanks for the help guys!
>
> Chris
>
>
>
>
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev