How to mask only red channel_C++
How to mask only one channel, say only red channel. e.g.
Mat img = imread("Lena.jpg");
Mat mask = img[:, : , 2]>0; // I want to do something like this
add a comment