answered 2016-09-22 05:02:22 -0600
minMaxLoc() will do the trick !
double minVal, maxVal; Point minPos, maxPos; minMaxLoc( channel[0], &minVal, &maxVal, &minPos, &maxPos );