- Build the OpenCV first.
git clone https://github.com/opencv/opencv.git
cd ./opencv
mkdir ./build
cmake ..
cmake --build .
The deinterleave operation is to seperate the RGB channel into red, green, and blue channel.
- Setup the OpenCV build path to the
CMakeLists.txt
under the pathsrc
.
set(OpenCV_DIR ${CMAKE_SOURCE_DIR}/../opencv/build)
- Build the whole source code.
# The images generated at the path `../../data`.
./build-linux.sh