Canny Hysteresis Thresholding
~18 mincode completion
Implement canny_hysteresis(magnitude, low, high) returning an integer array of 0s and 1s, same shape as the input.
Where this shows up
~18 min
••••••••••••••••
8 employers weight this skill
4 autonomy companies, 1 defense company, 1 health and bio company, 1 enterprise vendor, 1 AI product company. Top match scores 92.
Python
import numpy as np
def canny_hysteresis(magnitude, low, high):
"""
Two-threshold edge linking with 8-connectivity.
Args:
magnitude: 2D array (H, W) of edge strengths
low: weak threshold (inclusive)
high: strong threshold (inclusive)
Returns:
2D integer array (H, W): 1 for a kept edge pixel, else 0
"""
# YOUR CODE HERE
pass