mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-13 17:45:20 +08:00
TEST: fix returned tuple
This commit is contained in:
@@ -217,14 +217,14 @@ def test_circle_perimeter_andres():
|
||||
|
||||
def test_circle_perimeter_wu():
|
||||
img = np.zeros((15, 15), 'uint8')
|
||||
rr, cc = circle_perimeter(7, 7, 0, method='wu')
|
||||
rr, cc, val = circle_perimeter(7, 7, 0, method='wu')
|
||||
img[rr, cc] = 1
|
||||
assert(np.sum(img) == 1)
|
||||
assert(img[7][7] == 1)
|
||||
|
||||
img = np.zeros((17, 15), 'uint8')
|
||||
rr, cc = circle_perimeter(7, 7, 7, method='wu')
|
||||
img[rr, cc] = 1
|
||||
rr, cc, val = circle_perimeter(7, 7, 7, method='wu')
|
||||
img[rr, cc] = val
|
||||
print(img)
|
||||
img_ = np.array(
|
||||
[[0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0],
|
||||
|
||||
Reference in New Issue
Block a user