smooth_contour#
- ripplemapper.contour.smooth_contour(contour: ndarray, window: int = 3) ndarray[source]#
Smooth a contour by convolving with a small window.
- Parameters:
contour (np.ndarray) – Points marking the vertices of the contour.
window (int, optional) – Size of the smoothing window, by default 3.
- Returns:
Smoothed contour vertices.
- Return type:
np.ndarray