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

small fix

This commit is contained in:
ser1zw 2016-04-10 19:24:44 +09:00
parent 22ceeb045c
commit e4adacfdc5

View file

@ -41,7 +41,7 @@ module Cv
end
def self.load(filename, iscolor = 1)
CvMat::imread_as(filename, iscolor, CvMat)
CvMat::imread_as(filename, iscolor, self)
end
def encode(ext, options = {})
@ -50,7 +50,7 @@ module Cv
end
def self.decode(buf, iscolor = 1)
Mat::imdecode_as(buf, iscolor, CvMat)
Mat::imdecode_as(buf, iscolor, self)
end
def sobel(dx, dy, aperture_size = 3)