Ask Your Question

Mizux's profile - activity

2020-02-21 03:01:36 -0600 received badge  Supporter (source)
2016-01-14 19:21:47 -0600 received badge  Teacher (source)
2015-10-06 10:48:10 -0600 received badge  Necromancer (source)
2015-10-06 10:47:12 -0600 answered a question How to extract red color plane in OpenCV C++

prefer to use void cv::extractChannel (InputArray src, OutputArray dst, int coi )

cv::Mat out; cv::extractChannel(in, out, 0) // Supposing RGB channel with red first out....

src: http://docs.opencv.org/master/d2/de8/group__core__array.html#gacc6158574aa1f0281878c955bcf35642