D bindings for OpenCV
ponce
contact at g3mesfrommars.fr
Tue Oct 15 15:43:59 PDT 2013
On Tuesday, 15 October 2013 at 19:20:10 UTC, TJSomething wrote:
> I know this has been asked a few times before, but that was a
> few years ago. Are there any reasonably complete and up to date
> OpenCV bindings for D?
>
> If not, are there any reasonably easy ways to generate them? I
> tried SWIG and it choked on some of the macros they used,
> though that may have been because I had no idea what I was
> doing.
If you don't need all of OpenCV, writing a binding using
DerelictUtil is not that hard.
The main gotchas are:
- you really need an editor with a good column-mode
- taking care not to implement named enums
- taking care to replace long by c_long (resp. with unsigned long)
But of course with the sheer size of OpenCV anything automatic
would be better.
More information about the Digitalmars-d
mailing list