What is wrong with these images?

asked 2018-05-30 07:06:32 -0600

opencv-newb gravatar image

updated 2018-05-30 07:23:40 -0600

I am trying to stitch following images using : https://github.com/opencv/opencv/blob... for stitching

1. http://i68.tinypic.com/aniqs9.jpg

2. http://i66.tinypic.com/2iqxwuv.jpg

They fail on stitching, freezing my system and forcing a restart. How do I fix this?

output : Finding features... [ INFO:0]
Initialize OpenCL runtime... Features
in image #1: 6345 Features in image
#2: 5859 Finding features, time: 0.85044 sec Pairwise matchingPairwise matching, time: 0.204246 sec Need
more images

I have posted a similar question earlier with no response : http://answers.opencv.org/question/19...

EDIT: Provided output.

edit retag flag offensive close merge delete

Comments

There is a bug in stitching module

LBerger gravatar imageLBerger ( 2018-05-30 07:19:59 -0600 )edit

Where? I am not very experience with the c++ code and have been using python wrapper.

opencv-newb gravatar imageopencv-newb ( 2018-05-30 07:22:13 -0600 )edit

I remember your post: duplicate post I tried to stitch images but result image was too big relative to original size. When you reduce image size it is possible to stitch it

LBerger gravatar imageLBerger ( 2018-05-30 07:30:13 -0600 )edit

It gets distorted a little too much once I start tampering. Is there any standard configuration which can guarantee that there will be an stitched image? One pair got stitched by rotating them counter clockwise. It wouldn't stitch in normal configuration. I still can't reason myself for why it worked.

opencv-newb gravatar imageopencv-newb ( 2018-05-30 07:33:18 -0600 )edit
LBerger gravatar imageLBerger ( 2018-05-30 07:40:05 -0600 )edit

On above two images :

what(): OpenCV(3.4.1-dev) /opt/opencv/modules/core/src/matrix.cpp:465: 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'

opencv-newb gravatar imageopencv-newb ( 2018-05-31 03:42:12 -0600 )edit