gocv icon indicating copy to clipboard operation
gocv copied to clipboard

SeamlessClone Assertion failed

Open Wan9xy opened this issue 2 years ago • 0 comments

In my program

gocv.SeamlessClone(img,nRgba,imgGray,image.Pt(0,0),&nRgba,gocv.MixedClone)

img rows: 1362 cols: 1021 nRgba rows: 1362 cols: 1021 imgGray rows: 1362 cols: 1021

libc++abi: terminating with uncaught exception of type cv::Exception: OpenCV(4.5.5) /tmp/opencv-20220225-96709-1prwnhc/opencv-4.5.5/modules/core/src/matrix.cpp:811: error: (-215:Assertion failed) 0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows in function 'Mat'

but the imgs cols and rows are same

Wan9xy avatar Mar 08 '22 01:03 Wan9xy