def scharr(image, mask=None):
 out = np.sqrt(((scharr_h(image, mask) ** 2) + (scharr_v(image, mask) ** 2)))
 out /= np.sqrt(2)
 return out

def scharr ( image , mask = None ) : out = np . sqrt ( ( ( scharr_h ( image , mask ) ** 2 ) + ( scharr_v ( image , mask ) ** 2 ) ) ) out /= np . sqrt ( 2 ) return out
find the edge magnitude using the scharr transform .