title: how to find min/max axis length across the centroid of a closed curve
body: <p>I'm doing a segmentation task. Now I successfully segmented the area of interest and find the contour of the area. How can I calculate the min/max axis length of the contour? The axis does not have to be orthogonal.</p>
  <p>What I already got are:
  coordinates of points on the contour.
  centroid of the contour.</p>
  <p>What I already tried:
  I have found a fitting-ellipse of the contour. However, fitting-ellipse can only find the orthogonal axis which might not be the minimum or maximum length across the centroid.</p>