First time here? Check out the FAQ!
you can use function: void minMaxLoc(InputArray src, CV_OUT double* minVal, CV_OUT double* ma