def test_disk():
 np.random.seed(21)
 image = np.random.uniform(size=(10, 20))
 footprint = np.array([[1]])
 result = peak.peak_local_max(image, labels=np.ones((10, 20)), footprint=footprint, min_distance=1, threshold_rel=0, threshold_abs=(-1), indices=False, exclude_border=False)
 assert np.all(result)
 result = peak.peak_local_max(image, footprint=footprint, threshold_abs=(-1), indices=False, exclude_border=False)
 assert np.all(result)

def test_disk ( ) : np . random . seed ( 21 ) image = np . random . uniform ( size = ( 10 , 20 ) ) footprint = np . array ( [ [ 1 ] ] ) result = peak . peak_local_max ( image , labels = np . ones ( ( 10 , 20 ) ) , footprint = footprint , min_distance = 1 , threshold_rel = 0 , threshold_abs = ( - 1 ) , indices = False , exclude_border = False ) assert np . all ( result ) result = peak . peak_local_max ( image , footprint = footprint , threshold_abs = ( - 1 ) , indices = False , exclude_border = False ) assert np . all ( result )
regression test of img-1194 .