Why warping images by Homography matrix,cut image?

asked 2015-01-20 09:30:31 -0600

HasanGhaforian gravatar image

updated 2015-01-20 21:16:10 -0600

I followed Panorama – Image Stitching in OpenCV to do same task on Android,by using openCV4Android.My problem is in about warping image by founded homography matrix.I tested these images(those are from above linked reference):

image1:

enter image description here

image2:

enter image description here

Result of warping image1 by founded homography is:

enter image description here

You can see that result is good warped but first part of that(left side) is cut! So stitching result was:

enter image description here

And result of above referenced link page,is:

enter image description here

Why warping by homography cut that?Or may be I did some things wrong?

edit retag flag offensive close merge delete

Comments

If you do not eliminate a part of the overlapping image regions than you will have double the amount of pixels which would create something very weird. Why do you think that no image woud be thrown away?

StevenPuttemans gravatar imageStevenPuttemans ( 2015-01-21 04:42:11 -0600 )edit

@StevenPuttemans Do you mean that my result is natural?But I want to create an App that stitches images,without cut any part of images.I expect to achieve the latest image.Excuse me,if I did not understand what you mean.

HasanGhaforian gravatar imageHasanGhaforian ( 2015-01-21 12:47:10 -0600 )edit