I have certain functions that should accept types of IplImage or CvMat
I have the two types declared as inheriting from a generic CvArr as such
cdef class CvArr:
cdef void* thisptr
cdef class IplImage(CvArr):
.....
cdef class CvMat(CvArr):
....
and a function declared like this:
def cvSmooth(CvArr src, .....):
c_lib.cvSmooth(src.thisptr, ....)
when compiling and calling that function with instances of IplImage, the
Cython compiler complains that src is not a CvArr.
Is there a way around this?
Chris
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev