detect_edges#

ripplemapper.image.detect_edges(image: ndarray, sigma: float = 1, low_threshold: float = 0.1, high_threshold: float = 0.5) ndarray[source]#

Detect edges in the image using Canny edge detection.

Parameters:
  • image (np.ndarray) – Input image.

  • sigma (float, optional) – Sigma value for Gaussian filter, by default 1.

  • low_threshold (float, optional) – Low threshold for hysteresis, by default 0.1.

  • high_threshold (float, optional) – High threshold for hysteresis, by default 0.5.

Returns:

Binary edge image.

Return type:

np.ndarray