find_contours#

ripplemapper.contour.find_contours(edges_cleaned: ndarray, level: float = 0.5) ndarray[source]#

Find contours in the edge image and approximate them to simplify.

Parameters:
  • edges_cleaned (np.ndarray) – Processed edge image.

  • level (float, optional) – Contour level parameter for the find_contours function, by default 0.5.

Returns:

Approximated contour vertices.

Return type:

np.ndarray