Hi,
I am trying to stich two images together.
In order to do so I extracted sift features and find matches on the two images using this C implementation.
http://web.engr.oregonstate.edu/~hess/index.html
After that I found the homography matrix using the matched points.
http://www.ics.forth.gr/~lourakis/homest/
But if I use this Homography Matrix in "cvWarpPerspective" function, some of the parts of the image goes out of the viewable area (negative corrdinates).
To solve this I tried to calculate the bounding box first by piping the four corners of the image through Homography matrix. And move the initial image then warp it. But this caused the warping result to change.
Is there any way for warping an image and keeping it in the viewable area?
I would appreciate any help. Thanks in advance...