mirror of
https://github.com/ruby-opencv/ruby-opencv
synced 2023-03-27 23:22:12 -04:00
added structuring element shape constants for IplConvKernel
This commit is contained in:
parent
d82a1506cc
commit
a9717d18a8
5 changed files with 48 additions and 24 deletions
|
@ -23,6 +23,12 @@ class TestOpenCV < OpenCVTestCase
|
|||
assert_equal(1, CV_LOAD_IMAGE_COLOR)
|
||||
assert_equal(2, CV_LOAD_IMAGE_ANYDEPTH)
|
||||
assert_equal(4, CV_LOAD_IMAGE_ANYCOLOR)
|
||||
|
||||
# Structuring element shapes
|
||||
assert_equal(0, CV_SHAPE_RECT)
|
||||
assert_equal(1, CV_SHAPE_CROSS)
|
||||
assert_equal(2, CV_SHAPE_ELLIPSE)
|
||||
assert_equal(100, CV_SHAPE_CUSTOM)
|
||||
end
|
||||
|
||||
def test_symbols
|
||||
|
@ -89,6 +95,12 @@ class TestOpenCV < OpenCVTestCase
|
|||
assert_equal(3, MATCH_TEMPLATE_METHOD[:ccorr_normed])
|
||||
assert_equal(4, MATCH_TEMPLATE_METHOD[:ccoeff])
|
||||
assert_equal(5, MATCH_TEMPLATE_METHOD[:ccoeff_normed])
|
||||
|
||||
# Structuring element shapes
|
||||
assert_equal(0, STRUCTURING_ELEMENT_SHAPE[:rect])
|
||||
assert_equal(1, STRUCTURING_ELEMENT_SHAPE[:cross])
|
||||
assert_equal(2, STRUCTURING_ELEMENT_SHAPE[:ellipse])
|
||||
assert_equal(100, STRUCTURING_ELEMENT_SHAPE[:custom])
|
||||
end
|
||||
|
||||
def test_cvt_color_funcs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue