Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

minMaxLoc() will do the trick !

double  minVal, maxVal;
Point minPos, maxPos;

minMaxLoc( channel[0], &minVal, &maxVal, &minPos, &maxPos );