which image will be above the other image in stitching process??

asked 2015-09-15 05:56:35 -0600

alexandra gravatar image

updated 2015-09-15 06:10:44 -0600

Hello,

In the stitcher class after extract and match features how its decide which image will be above the other image (the overlap area)?? I mean the overlap area will be taken from the first image or second image or it will be merged together ??

Thanks in advance,

edit retag flag offensive close merge delete

Comments

Relative images position is decided knowing homography. Of course Homography needs matching features to work

LBerger gravatar imageLBerger ( 2015-09-15 08:35:28 -0600 )edit

Thank you LBerger, if you know any useful link to explain the concept please provide me with them if possible.

alexandra gravatar imagealexandra ( 2015-09-16 01:03:29 -0600 )edit

You have got some reference in this post

LBerger gravatar imageLBerger ( 2015-09-16 01:28:16 -0600 )edit

Hello LBerger, thanks for the reference, but from what i understand the homography is a transformation matrix that helps in warp one image into other (is that true ??). what i want to know is how to decide which image is warp into another? for example, if i have two images to stitch and after extract and mach the features and compute the homography should i warp the second image into the first one or should i do the opposite??

alexandra gravatar imagealexandra ( 2015-10-05 04:05:10 -0600 )edit

I'm not sure to understand your problem. Homography doc is here. Of course dstpoint= H srcpoint or srcpoint =H^(-1) dst. But result image size result would be the same. You have to warp image corners to find this size and after warp each image in this new image. After problem is how to blend seam point and correct exposure.

LBerger gravatar imageLBerger ( 2015-10-05 04:27:48 -0600 )edit

What i mean is if i warp the second image into the first image the (overlap area) in the resulted image will be taking from the second image and vise versa. I am using Opencv stitching class and i want to know how it decide which image warping into other.

alexandra gravatar imagealexandra ( 2015-10-05 04:43:35 -0600 )edit

This work is not done in homography but in exposureCompensator and seamFinder and Blender. You should used this sample to understand each step

LBerger gravatar imageLBerger ( 2015-10-05 08:19:53 -0600 )edit

Thank you very much. I tried to run the example but there are some missing files, also i tried to understand how the seamFinder choose the seam line but i didn't find any explanation of this procedure !! if you know any useful resource please help me.

alexandra gravatar imagealexandra ( 2015-10-07 02:47:49 -0600 )edit

What do you mean by there are some missing files? If you 've got problem with this sample you can use this one (same without a bug )

LBerger gravatar imageLBerger ( 2015-10-07 03:11:49 -0600 )edit

they can't find this files:

#include <opencv2/core/utility.hpp>
#include "opencv2/imgcodecs.hpp"
#include "opencv2/stitching/detail/timelapsers.hpp"
alexandra gravatar imagealexandra ( 2015-10-07 03:35:45 -0600 )edit