modified array

This commit is contained in:
Rebecca
2014-09-09 22:19:35 +01:00
committed by Stefan van der Walt
parent fc18fb7ffa
commit 2ba41844ff
+37 -10
View File
@@ -282,16 +282,43 @@ def test_corner_fast_image_unsupported_error():
def test_corner_fast_lena():
img = rgb2gray(data.astronaut())
expected = np.array([[ 67, 157],
[204, 261],
[247, 146],
[269, 111],
[318, 158],
[386, 73],
[413, 70],
[435, 180],
[455, 177],
[461, 160]])
expected = np.array([[101, 198],
[140, 205],
[141, 242],
[177, 156],
[188, 113],
[197, 148],
[213, 117],
[223, 375],
[232, 266],
[245, 137],
[249, 171],
[300, 244],
[305, 57],
[325, 245],
[339, 242],
[346, 279],
[353, 172],
[358, 307],
[362, 252],
[362, 328],
[363, 192],
[364, 147],
[369, 159],
[374, 171],
[379, 183],
[387, 195],
[390, 149],
[401, 197],
[403, 162],
[413, 181],
[444, 310],
[464, 251],
[476, 250],
[489, 155],
[492, 139],
[494, 169],
[496, 266]])
actual = corner_peaks(corner_fast(img, 12, 0.3))
print actual
assert_array_equal(actual, expected)