Skip to content

Commit

Permalink
vdc
Browse files Browse the repository at this point in the history
  • Loading branch information
bewithaman committed Mar 20, 2015
1 parent f17edca commit 6a581ce
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions skimage/draw/tests/test_draw.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,20 +233,18 @@ def test_circle_perimeter_bresenham():
)
assert_array_equal(img, img_)

img_1 = np.zeros((10, 10), 'uint8')
rr_1, cc_1 = circle_perimeter(4.5, 4.5, 3.5, method='bresenham')
img_1 = np.zeros((8, 8), 'uint8')
rr_1, cc_1 = circle_perimeter(2.5, 2.4, 2.1, method='bresenham')
img_1[rr_1, cc_1] = 1
img_1_ = np.array(
[[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 1, 1, 1, 0, 0, 0],
[0, 0, 0, 1, 0, 0, 0, 1, 0, 0],
[0, 0, 1, 0, 0, 0, 0, 0, 1, 0],
[0, 1, 0, 0, 0, 0, 0, 0, 0, 1],
[0, 1, 0, 0, 0, 0, 0, 0, 0, 1],
[0, 1, 0, 0, 0, 0, 0, 0, 0, 1],
[0, 0, 1, 0, 0, 0, 0, 0, 1, 0],
[0, 0, 0, 1, 0, 0, 0, 1, 0, 0],
[0, 0, 0, 0, 1, 1, 1, 0, 0, 0]]
[[0, 0, 0, 0, 0, 0, 0, 0],
[0, 1, 1, 1, 0, 0, 0, 0],
[1, 0, 0, 0, 1, 0, 0, 0],
[1, 0, 0, 0, 1, 0 ,0, 0],
[1, 0, 0, 0, 1, 0, 0, 0],
[0, 1, 1, 1, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0 ,0, 0]]
)
assert_array_equal(img_1, img_1_)

Expand Down

0 comments on commit 6a581ce

Please sign in to comment.