how to change colour image to grey in opencv c++ code example
Example: how to change colour image to grey in opencv c++
//change the color image to grayscale image
cvtColor(image, image, COLOR_BGR2GRAY);
//change the color image to grayscale image
cvtColor(image, image, COLOR_BGR2GRAY);