Chris Colbert wrote:
> Unfortunately, I'm on a windows machine and thus can't use valgrind.

VMWare Player and Ubuntu VMWare image?

> I went ahead and exposed all (actually like 97%) of the contants in OpenCV
> to python using the method you described.
>
> Now, my wrapper works for the contants:  CV_INTER_NN and CV_INTER_AREA
>
> but fails on CV_INTER_LINEAR and CV_INTER_CUBIC which have the integer
> values 1 and 2 respectively, when printed to the console.
>
> I haven't asked on the OpenCV lists yet because this seems to be a problem
> in my code or a bug in Cython (given that it all works in pure C).

If it works in pure C but not in pure Cython, there's a way of approaching
that will be guaranteed to find the issues:

a) Boil down the Cython code as much as possible. Make sure a simple cdef
function with no Python types or operations exhibit the crash.
b) Open the generate C file and replace the body of said cdef function
with the code that works.
c) If that doesn't work, it's likely a linker bug, strange use of macros
in the API or similar. Otherwise, incrementally change back to
Cython-generated code until it no longer works.

Dag Sverre


_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to