Ask Your Question
1

how do I generate the Java bindings for the gpu module?

asked 2013-04-07 15:52:50 -0600

basheer gravatar image

So, I recently found out (from here) that the new Java bindings for openCV (as of 2.4.4) don't include the gpu module.

How would I go about generating the modules myself? Can someone go over how this would be done (a summary or something would be fine)? Links, hints, anything...

Also, is this currently being worked on by the openCV team?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-04-07 16:31:46 -0600

emchristiansen gravatar image

Q1: I haven't tried using the gpu module, but it looks like it's in the header generator list (see modules/java/generator/rst_parser.py).

A decent debug strategy is to track the progress of the CMake build script at modules/java/CMakeLists.txt. For example, you can get a list of headers the system tries to parse by adding the line

message(STATUS "module_headers = ${module_headers}")

immediately after line 58 of modules/java/CMakeLists.txt.

Please let me know if you get stuck or need more explanation.

Q2: I'm not currently working on extending the Java wrapper, but there is ongoing effort by Hilton Bristow to make a Matlab wrapper. Work he does to improve the header parser, eg gpu header parsing, will automatically translate to the Java wrapper.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-04-07 15:52:50 -0600

Seen: 1,053 times

Last updated: Apr 07 '13