Need suggestion for running modified source code
I am new to opencv and cmake. I really need some instructions on building modified source code. I cloned master branch from github.
I modified opencv/modules/imgproc/src/grabcut.cpp
and wants to write another class lets say class run_grabcut
in opencv/test.cpp
using the modified version. Would you please give me 2 examples:
what files should I include in the source code
opencv/test.cpp
?Which
CMakeList
should I modify to build atest.cpp
target so that I can only run this file? Would you please give me an example of this CMakeList?
Thanks so much for your help!
you're trying to reduce a car to the driver seat, and still expect it to move ...
@berak lol. Would you please see the updated question? I really need your help:D Thanks!
imho, there's no way at all without building at least imgproc & core modules. for any test making sense, you'll need highgui and (3.x) imgcodecs, too.
try to make a new buildfolder (save your working one for later), and try to disable any modules you don't need (in cmake(-gui)). build a minimal version of opencv, experiment with that, later, when it works, build your original setup with the changes.
idk, what your "test" is, but a real unit test would also require opencv_ts module.