From 439d80f01f312f916e00d5206dcca1cfd7e0ea40 Mon Sep 17 00:00:00 2001 From: "Ryotaro \"Justin\" Kimura" <1560508+ryoppippi@users.noreply.github.com> Date: Fri, 30 Sep 2022 09:39:12 +0100 Subject: [PATCH] fix invalid flag type https://docs.opencv.org/master/d2/de8/group__core__array.html#ga247f571aa6244827d3d798f13892da58 --- core.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core.go b/core.go index 95010ee4..451eefb3 100644 --- a/core.go +++ b/core.go @@ -1011,7 +1011,7 @@ func BatchDistance(src1 Mat, src2 Mat, dist Mat, dtype MatType, nidx Mat, normTy // For further details, please see: // https://docs.opencv.org/master/d2/de8/group__core__array.html#ga247f571aa6244827d3d798f13892da58 // -func BorderInterpolate(p int, len int, borderType CovarFlags) int { +func BorderInterpolate(p int, len int, borderType BorderType) int { ret := C.Mat_BorderInterpolate(C.int(p), C.int(len), C.int(borderType)) return int(ret) } @@ -2814,4 +2814,4 @@ func (pvs Points3fVector) Append(pv Point3fVector) { // Close closes and frees memory for this Points3fVector. func (pvs Points3fVector) Close() { C.Points3fVector_Close(pvs.p) -} \ No newline at end of file +}