I am new to opencv and cmake. I really need some instructions on building modified source code. I cloned master branch from github.
I need to add some output functions to opencv/modules/imgproc/src/grabcut.cpp
. Let's say I just added some print functions in the source code. How could I build it without having to build the entire imgproc
module? Which cmake
file should I modify to implement this?
Another question is after I build source code, how could I use grabcut.cpp
outside opencv
library? It uses some "private headers" which prevent me from using it outside opencv's library.
Thanks so much for your help!