mirror of
https://github.com/ruby-opencv/ruby-opencv
synced 2023-03-27 23:22:12 -04:00
added a test case to test_curve.rb
This commit is contained in:
parent
67de94e711
commit
d6c65ceee8
1 changed files with 1 additions and 0 deletions
|
@ -36,6 +36,7 @@ class TestCurve < OpenCVTestCase
|
||||||
|
|
||||||
def test_arc_length
|
def test_arc_length
|
||||||
assert_in_delta(211.480, @contour2.arc_length, 0.001)
|
assert_in_delta(211.480, @contour2.arc_length, 0.001)
|
||||||
|
assert_in_delta(18.071, @contour2.arc_length(CvSlice.new(0, 9), true), 0.001)
|
||||||
assert_in_delta(18.071, @contour2.arc_length(0..10, true), 0.001)
|
assert_in_delta(18.071, @contour2.arc_length(0..10, true), 0.001)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue