extend_contour#

ripplemapper.contour.extend_contour(contour: ndarray, shape: tuple) ndarray[source]#

Extend the contour to the edges of the image region defined by shape.

Parameters:
  • contour (np.ndarray) – Points marking the vertices of the contour.

  • shape (tuple) – Length and width of the image.

Returns:

Extended contour vertices.

Return type:

np.ndarray