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:
parent
22ceeb045c
commit
e4adacfdc5
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue