Canny Non-Maximum Suppression
~20 mincode completion
Implement canny_nms(magnitude, angle) returning the suppressed magnitude array, same shape as the input.
Where this shows up
~20 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_nms(magnitude, angle):
"""
Non-maximum suppression along the quantized gradient direction.
Args:
magnitude: 2D array (H, W) of gradient magnitudes
angle: 2D array (H, W) of gradient angles in degrees, any range
Returns:
2D array (H, W): magnitude where it is a local maximum, else 0
"""
# YOUR CODE HERE
pass