Skip to content

Commit

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

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(
img = np.zeros((8, 8), 'uint8')
rr, cc = circle_perimeter(2.5, 2.4, 2.1, method='bresenham')
img[rr, cc] = 1
img_ = np.array(
[[0, 0, 0, 0, 0, 0, 0, 0],
[0, 1, 1, 1, 0, 0, 0, 0],
[1, 0, 0, 0, 1, 0, 0, 0],
Expand All @@ -246,7 +246,7 @@ def test_circle_perimeter_bresenham():
[0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0 ,0, 0]]
)
assert_array_equal(img_1, img_1_)
assert_array_equal(img, img_)


def test_circle_perimeter_bresenham_shape():
Expand Down

0 comments on commit 102f859

Please sign in to comment.