more concise writting

This commit is contained in:
François Boulogne
2016-06-02 13:38:32 +02:00
parent 8c9d8926c8
commit ea9180f754
+1 -4
View File
@@ -292,10 +292,7 @@ def test_threshold_minimum():
def test_threshold_minimum_synthetic():
img = np.zeros((25*25), dtype=np.uint8)
for i in range(25*25):
img[i] = i % 256
img = np.reshape(img, (25, 25))
img = np.arange(25*25, dtype=np.uint8).reshape((25, 25))
img[0:9, :] = 50
img[14:25, :] = 250