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

added OpenCV version constants

This commit is contained in:
ser1zw 2011-10-31 01:51:20 +09:00
parent 32b2c0a41d
commit 1d1244de0c
2 changed files with 13 additions and 1 deletions

View file

@ -8,6 +8,12 @@ include OpenCV
class TestOpenCV < OpenCVTestCase
def test_constants
# OpenCV version
assert_equal('2.3.1', CV_VERSION)
assert_equal(2, CV_MAJOR_VERSION)
assert_equal(3, CV_MINOR_VERSION)
assert_equal(1, CV_SUBMINOR_VERSION)
# Depths
assert_equal(0, CV_8U)
assert_equal(1, CV_8S)