mirror of
https://github.com/ruby-opencv/ruby-opencv
synced 2023-03-27 23:22:12 -04:00
fixed a test for CvConnectedComp
This commit is contained in:
parent
f96f074b60
commit
ebf678d005
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ class TestCvConnectedComp < OpenCVTestCase
|
|||
|
||||
point = CvPoint.new(20, 20)
|
||||
@mat, @connected_comp, @mask = mat0.flood_fill(point, 0, CvScalar.new(0), CvScalar.new(64),
|
||||
{:connectivity => 8, :fixed_range => true, :mask_only => true})
|
||||
:connectivity => 8, :fixed_range => true, :mask_only => true)
|
||||
end
|
||||
|
||||
def test_initialize
|
||||
|
@ -50,7 +50,7 @@ class TestCvConnectedComp < OpenCVTestCase
|
|||
assert_equal(96, @connected_comp.rect.width)
|
||||
assert_equal(96, @connected_comp.rect.height)
|
||||
|
||||
connected_comp.rect = CvRect.new(1, 2, 3, 4);
|
||||
@connected_comp.rect = CvRect.new(1, 2, 3, 4);
|
||||
assert_equal(1, @connected_comp.rect.x)
|
||||
assert_equal(2, @connected_comp.rect.y)
|
||||
assert_equal(3, @connected_comp.rect.width)
|
||||
|
|
Loading…
Add table
Reference in a new issue