convert image to grayscale opencv cpp 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);