Ask Your Question
0

How to use Opencv ximgproc classes in Java

asked 2017-07-06 03:07:13 -0600

arqam gravatar image

I am working on a project where I need to use some of the filters provided in here.

The project that I am working is in Java and when I tried finding the class in Java I found it here : https://github.com/opencv/opencv_cont...

So if I want to use a filter for example joint bilateral filter from ximgproc class then how can I use. I found this for XImgProc in Java : https://github.com/bytedeco/javacpp-p...

But I can't use any of the function.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-07-06 03:44:53 -0600

berak gravatar image

updated 2017-07-06 03:47:37 -0600

for further, similar problems, here's some sort of checklist:

  1. are the java/python wrappers enabled for this module ? you would look at the resp. CmakeLists.txt

    (well, in this case, only python. you'd add "java" to the end of the list, like: ... WRAP python java)

  2. are the functions you try to use exposed to scripting ? (does it have a proper CV_EXPORTS_W in front of it, like here ? ) if not, you probably cannot use it at all (because there were some previous problems, wrapping it)

  3. are there any known issues ? if you cannot find any, you might be the 1st person ever, trying this ;(


then, follow build instructions here

(and no, we can't help you with javacv, which is entirely off-topic here (and you probably shouldn't use it))

edit flag offensive delete link more

Comments

Yeah I am happy with OpenCV. You are saying no one has used XImgProc functions before?

arqam gravatar imagearqam ( 2017-07-06 04:20:13 -0600 )edit

maybe not from java ...

just try ! imho, your chances are good !

berak gravatar imageberak ( 2017-07-06 04:46:21 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2017-07-06 03:07:13 -0600

Seen: 382 times

Last updated: Jul 06 '17