Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I found another way of doing this:

Mat temp, minChannel, bgr[3];

split(src, bgr);                           //split src into B,G,R channels
(cv::min)(bgr[0], bgr[1], temp);           //find minimum between B and G channels
(cv::min)(temp, bgr[2], minChannel);       //find minimum between temp and R channels