def sobel_h(image, mask=None):
 assert_nD(image, 2)
 image = img_as_float(image)
 result = convolve(image, HSOBEL_WEIGHTS)
 return _mask_filter_result(result, mask)

def sobel_h ( image , mask = None ) : assert_nD ( image , 2 ) image = img_as_float ( image ) result = convolve ( image , HSOBEL_WEIGHTS ) return _mask_filter_result ( result , mask )
find the horizontal edges of an image using the sobel transform .