Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

minMaxLoc(), see http://docs.opencv.org/modules/core/doc/operations_on_arrays.html?highlight=minmaxloc#minmaxloc

Usage:

double min, max;
cv::minMaxLoc(your_mat, &min, &max);

The function can also give you the location of the min and max-values:

cv::Point min_loc, max_loc
cv::minMaxLoc(your_mat, &min, &max, &min_loc, &max_loc);