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

add CvMat#adaptive_threshold

This commit is contained in:
ser1zw 2012-02-15 02:11:41 +09:00
parent 86b5d1918b
commit 71b2743c76
4 changed files with 135 additions and 0 deletions

View file

@ -62,6 +62,10 @@ class TestOpenCV < OpenCVTestCase
assert_equal(4, CV_THRESH_TOZERO_INV)
assert_equal(8, CV_THRESH_OTSU)
# Adaptive methods
assert_equal(0, CV_ADAPTIVE_THRESH_MEAN_C)
assert_equal(1, CV_ADAPTIVE_THRESH_GAUSSIAN_C)
# Retrieval mode
assert_equal(0, CV_RETR_EXTERNAL)
assert_equal(1, CV_RETR_LIST)