Image scheme is W*H*channels
.
I have two images of dimensions : 6004293 and 6005233
There is a overlap between the two images. On trying to stitch I get the following error:
OpenCV Error: Assertion failed (dst.cols < 0x7fff && dst.rows < 0x7fff && src.cols < 0x7fff && src.rows < 0x7fff) in remap, file /home/user/3.4.0/opencv-3.4.0/modules/imgproc/src/imgwarp.cpp, line 1749
I looked around an little bit and was suggested to comment out an Assertion in the imgwarp.cpp file. I commented it out and then I got a different error:
OpenCV Error: Assertion failed (u != 0) in create, file /home/user/3.4.0/opencv-3.4.0/modules/core/src/matrix.cpp, line 436
I went ahead and commented that line as well. I recompiled and linked the .so file to my python cv2 package. The code ran fine,no errors this time, but the stitched image has a width of 30000 instead of 600. The final image is highly distorted.
How do I fix this?