demo for OpenCV 4.0.0, demonstrates applying Sobel operator to the image, using regular approach, and new G-API.
demo uses CMake and conan to build.
if you're not familiar with conan, check out the article Getting Started with conan.io.
checkout the conanfile.txt in order to see how does it declares an OpenCV dependency.
run the following commands:
mkdir build
cd build
conan install -g cmake -s build_type=Release ..
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build .
run the following commands:
./sobel
or
./sobel-gapi
output image will be stored as out.png.