def test_laplace_mask():
 image = np.zeros((9, 9))
 image[3:(-3), 3:(-3)] = 1
 result = filters.laplace(image, ksize=3, mask=np.zeros((9, 9), bool))
 assert np.all((result == 0))

def test_laplace_mask ( ) : image = np . zeros ( ( 9 , 9 ) ) image [ 3 : ( - 3 ) , 3 : ( - 3 ) ] = 1 result = filters . laplace ( image , ksize = 3 , mask = np . zeros ( ( 9 , 9 ) , bool ) ) assert np . all ( ( result == 0 ) )
laplace on a masked array should be zero .