threshold_image#
- ripplemapper.image.threshold_image(image: ndarray, level: float = 0.8) ndarray[source]#
Threshold the image to make any pixel above the level equal to the max.
- Parameters:
image (np.ndarray) – Input image.
level (float, optional) – Threshold value, by default 0.8.
- Returns:
Binary image.
- Return type:
np.ndarray