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
1 | initial version |
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