I don't have direct experience using OpenCV myself, but because of my role in
Images I'm a likely mentor for an OpenCV project. Others may chime in too.
As a prototype and proof-of-principle, this looks quite promising---nice work.
In the "real" version, I'm not quite sure I see the need for the JMat struct,
because the information that's there is also available in an Array{Uint8, 2}.
One good design might be to return a Mat* to Julia as an opaque type, and then
(if you can't work directly with the Mat struct from Julia) have ccall-able
utility functions that query the size, get the pointer address, etc. Then your
Julia wrapper can use pointer_to_array to access the buffer as a Julia Array.
There's an example of this kind of interface in base/stat.jl (for working with
the horribly non-portable filesystem stat struct) and the corresponding C stubs
in src/sys.c.
Best,
--Tim
> > On Sun, Mar 16, 2014 at 1:23 PM, Tim Holy <
tim....@gmail.com <javascript:>