def test_fill_hole():
 seed = np.array([0, 8, 8, 8, 8, 8, 8, 8, 8, 0])
 mask = np.array([0, 3, 6, 2, 1, 1, 1, 4, 2, 0])
 result = reconstruction(seed, mask, method='erosion')
 assert_close(result, np.array([0, 3, 6, 4, 4, 4, 4, 4, 2, 0]))

def test_fill_hole ( ) : seed = np . array ( [ 0 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 8 , 0 ] ) mask = np . array ( [ 0 , 3 , 6 , 2 , 1 , 1 , 1 , 4 , 2 , 0 ] ) result = reconstruction ( seed , mask , method = 'erosion' ) assert_close ( result , np . array ( [ 0 , 3 , 6 , 4 , 4 , 4 , 4 , 4 , 2 , 0 ] ) )
test reconstruction by erosion .