Difficult to build individual filters within ximgproc?

asked 2019-03-02 03:05:54 -0600

Martian gravatar image

There are some interesting edge-preserving filters in ximgproc. Unfortunately, I didn't know about ximgproc when I originally built OpenCV, and the build process was extremely tedious, so I'd like to avoid a complete rebuild if that is possible. Also, some of the filters are in OpenCV 4, which I'm not running yet.

Has anyone here split off parts of ximgproc for separate compilation? If so, was it difficult to resolve dependencies?

edit retag flag offensive close merge delete

Comments

dependancies are simple, and they're here

avoid a complete rebuild

i don't see, how that's possible. at least the dependancy modules, like core and imgproc will have to be rebuilt.

in general, it's probably for the best, if you overcome your fear of rebuilding libs (on a regular basis, even !)

berak gravatar imageberak ( 2019-03-02 03:25:37 -0600 )edit
1

I wish I could be that confident, Barak. It took me a couple days to get 3.x built. I had to Google constantly for one obscure error message after another. I wish I had known about ximgproc at that time, but I didn't. The project has to run on my sole Linux machine. I should really set up another Linux box for this. For now, I thought I might have a shot at just copy/pasting C++ source for an individual filter or two and compiling into the project. But I don't have a good feel for how deep the dependency chain extends.

Martian gravatar imageMartian ( 2019-03-02 08:05:05 -0600 )edit

well, IF you want to give it another try, there might be an easy shortcut to restrict compilation of the contrib modules just to the ximgproc one, use:

cmake -DOPENCV_EXTRA_MODULES_PATH=/path/to/opencv_contrib/modules/ximgproc
berak gravatar imageberak ( 2019-03-02 08:16:13 -0600 )edit