def test_scharr_v_horizontal():
 (i, j) = np.mgrid[(-5):6, (-5):6]
 image = (i >= 0).astype(float)
 result = filters.scharr_v(image)
 assert_allclose(result, 0)

def test_scharr_v_horizontal ( ) : ( i , j ) = np . mgrid [ ( - 5 ) : 6 , ( - 5 ) : 6 ] image = ( i >= 0 ) . astype ( float ) result = filters . scharr_v ( image ) assert_allclose ( result , 0 )
vertical scharr on a horizontal edge should be zero .