docs: def get_inert_ratio_cvx(cont):
      """Compute the inertia ratio of the convex hull of a contour
  
      The inertia ratio is computed from the central second order of moments
      along x (mu20) and y (mu02) via `sqrt(mu20/mu02)`.
  
      Parameters
      ----------
      cont: ndarray or list of ndarrays of shape (N,2)
          A 2D array that holds the contour of an event (in pixels)
          e.g. obtained using `mm.contour` where  `mm` is an instance
          of `RTDCBase`. The first and second columns of `cont`
          correspond to the x- and y-coordinates of the contour.
  
      Returns
      -------
      inert_ratio_cvx: float or ndarray of size N
          The inertia ratio of the contour's convex hull
  
      Notes
      -----
      The contour moments mu20 and mu02 are computed the same way they
      are computed in OpenCV's `moments.cpp`.
  
  
      See Also
      --------
      get_inert_ratio_raw: Compute inertia ratio of a raw contour
  
  
      References
      ----------
      - `<https://en.wikipedia.org/wiki/Image_moment#Central_moments>`__
      - `<https://github.com/opencv/opencv/blob/
        f81370232a651bdac5042efe907bcaa50a66c487/modules/imgproc/src/
        moments.cpp#L93>`__
      """
      if isinstance(cont, np.ndarray):
          # If cont is an array, it is not a list of contours,
          # because contours can have different lengths.
          cont = [cont]
          ret_list = False
      else:
          ret_list = True
  
      length = len(cont)
  
      inert_ratio_cvx = np.zeros(length, dtype=float) * np.nan
  
      for ii in range(length):
          try:
              chull = ssp.ConvexHull(cont[ii])
          except ssp.qhull.QhullError:
              pass
          else:
              hull = cont[ii][chull.vertices, :]
              inert_ratio_cvx[ii] = get_inert_ratio_raw(hull)
  
      if not ret_list:
          inert_ratio_cvx = inert_ratio_cvx[0]
  
      return inert_ratio_cvx