1
0
Fork 0
mirror of https://github.com/ruby-opencv/ruby-opencv synced 2023-03-27 23:22:12 -04:00

update tests of CvMat#pre_corner_detect

This commit is contained in:
ser1zw 2013-01-20 04:15:12 +09:00
parent 4f6cdf9adb
commit bde231fd96

View file

@ -115,9 +115,9 @@ class TestCvMat_imageprocessing < OpenCVTestCase
mat2 = mat0.pre_corner_detect(3)
mat3 = mat0.pre_corner_detect(5)
assert_equal('1ec909dfa2e497c7f454e39aefd764f5', hash_img(mat1))
assert_equal('1ec909dfa2e497c7f454e39aefd764f5', hash_img(mat2))
assert_equal('42e7443ffd389d15343d3c6bdc42f553', hash_img(mat3))
assert_in_delta(0, count_threshold(mat1, 0.1), 30)
assert_in_delta(0, count_threshold(mat2, 0.1), 30)
assert_in_delta(380, count_threshold(mat3, 0.1), 30)
# Uncomment the following lines to show the images
# snap(['original', mat0], ['pre_coner_detect', mat1],