First time here? Check out the FAQ!
answered 2016-04-16 20:39:41 -0600
You're looking for the max() function.
Try familarizing yourself with the documentation and basic functions of OpenCV.