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

change module name to Cv

This commit is contained in:
ser1zw 2016-04-03 07:47:06 +09:00
parent cddbc9acca
commit a2b46e4839
44 changed files with 3631 additions and 80 deletions

View file

@ -4,9 +4,9 @@ require 'test/unit'
require 'opencv'
require File.expand_path(File.dirname(__FILE__)) + '/../helper'
include OpenCV
include Cv
# Tests for image processing functions of OpenCV::CvMat
# Tests for image processing functions of Cv::CvMat
module Legacy
class TestCvMat_imageprocessing < OpenCVTestCase
DEPTH = [:cv8u, :cv8s, :cv16u, :cv16s, :cv32s, :cv32f, :cv64f]
@ -24,7 +24,7 @@ module Legacy
assert_equal(:cv32f, CvMat.new(16, 16, :cv32f, 1).sobel(1, 1).depth)
(DEPTH - [:cv8u, :cv16u, :cv16s, :cv32f]).each { |depth|
assert_raise(OpenCV::Error::StsNotImplemented) {
assert_raise(Cv::Error::StsNotImplemented) {
CvMat.new(3, 3, depth).sobel(1, 1)
}
}
@ -51,11 +51,11 @@ module Legacy
assert_equal(:cv32f, CvMat.new(16, 16, :cv32f, 1).laplace.depth)
(DEPTH - [:cv8u, :cv16u, :cv16s, :cv32f, :cv64f]).each { |depth|
assert_raise(OpenCV::Error::StsNotImplemented) {
assert_raise(Cv::Error::StsNotImplemented) {
CvMat.new(3, 3, depth).laplace
}
}
assert_raise(OpenCV::Error::StsAssert) {
assert_raise(Cv::Error::StsAssert) {
CvMat.new(3, 3, :cv64f).laplace
}