title: How can i calculate elongation of a convex hull in opencv?
body: <p>I have found this way to calculate elongation basing on image moments</p>
  
  <pre><code>#ELONGATION
  def elongation(m):
      x = m['mu20'] + m['mu02']
      y = 4 * m['mu11']**2 + (m['mu20'] - m['mu02'])**2
      return (x + y**0.5) / (x - y**0.5)
  
  mom = cv2.moments(unicocnt, 1)    
  elongation = elongation(mom)
  </code></pre>
  
  <p>How can i calculate elongation of a Convex Hull?</p>
  
  <pre><code>hull = cv2.convexHull(unicocnt)
  </code></pre>
  
  <p>where 'unicocnt' is a contour that was taken with find contours.</p>