C++ code using OpenCV to detect colors using image processing methods