Ask Your Question
0

stitching images and homography

asked 2015-11-04 12:47:01 -0600

updated 2015-11-05 06:18:29 -0600

How can I change the Opencv stitching code to compute the homography once for the first image pair and subsequent pairs simply warp with it? Please provide some suggestions so that I can understand and do it.

edit retag flag offensive close merge delete

Comments

a subsequent pair will require a different transformation matrix, so why do you want it otherwise ?

berak gravatar imageberak ( 2015-11-05 02:56:31 -0600 )edit

I've edited the question. Please see editing in the question.

Ayesha Siddique gravatar imageAyesha Siddique ( 2015-11-05 04:01:03 -0600 )edit
1

what you want, might be impossible / not feasible.

again, please explain the reason, why you want to avoid to calculate the homography for subsequent pairs

berak gravatar imageberak ( 2015-11-05 06:20:28 -0600 )edit

I've to actually do the video stabilization while reducing the time consumption and for that purpose, I need to start from image stitching and study its code thoroughly. What I catch from current Opencv stitching code is...that it calculates the homograph matrix for each overlapping pair and then process. We can improve the idea by calculating the homography of the first and second image and then calculating the homography of first and third image and then first and forth image and so on.

Ayesha Siddique gravatar imageAyesha Siddique ( 2015-11-05 11:42:05 -0600 )edit
1

ahh, makes more sense now. you think, you've found some redundancy?

"and then first and forth image and so on." - we don't know at this stage, if the forth image should join the 1st, second or third (or 17th) image.

berak gravatar imageberak ( 2015-11-05 11:54:18 -0600 )edit

one more thing! I've read the second section "Feature Matching" in the research paper that comes along with the stitching documentation. I think that the whole homography concept of this stitching code is discussed here but in the code, find the homography matrix for a specific frame, The function :findhomography"isn't used in the provided stitching code but i think that it starts inside "HomographyBasedEstimator". I've consulted the OpenCV docmentation and the code but I couldn't get it clearly.

Ayesha Siddique gravatar imageAyesha Siddique ( 2015-11-05 12:17:32 -0600 )edit

I am trying to do the exact same thing. Have you found a solution to your problem?

ladouceu gravatar imageladouceu ( 2017-08-07 14:44:18 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-11-17 03:52:23 -0600

This is not feasible for "images" in a panorama or in other words, the quality is deteriorated but it isn't enhanced.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-11-04 12:47:01 -0600

Seen: 894 times

Last updated: Nov 17 '15