gocv
gocv copied to clipboard
SeamlessClone Assertion failed
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