title: Maxvalue in cv2.minMaxLoc()?
body: <p>I'm having a bit of trouble with opencv and template matching, so I was hoping someone here could help a lost soul out.</p>
  
  <p>So as part of the code I'm using, I've got the following 2 lines which I don't quite understand as well as I should.</p>
  
  <pre><code>result = cv2.matchTemplate(edged, template, cv2.TM_CCOEFF)
  (_, maxVal, _, maxLoc) = cv2.minMaxLoc(result)
  </code></pre>
  
  <p>From my understanding, the first line stores a correlation coefficient in the variable "result". This in turn is passed into <code>cv2.minMaxLoc(...)</code> which in turn generates a 4 element array composing of (minVal, maxVal, minLoc, maxLoc) of which we are only interested in maxVal and maxLoc. </p>
  
  <p>Upon printing the value of maxVal, I seem to be getting values in the between 2,000,000 to 7,000,000 depending on the template, lighting conditions etc. </p>
  
  <p>My questions are as follows: </p>
  
  <p>What does maxVal mean?</p>
  
  <p>What is the range of maxVal?</p>
  
  <p>What physical characteristics affect the values of maxVal?</p>
  
  <p>Thank you in advance for all your help and guidance!</p>