OpenCv 3d Stitching Panorama

后端 未结 1 1542
耶瑟儿~
耶瑟儿~ 2021-01-14 13:50

I have 7 images from gopro (5 cameras in rig and one for top and one for bottom, They all are gopro camera). I want to stitch all these images together to create a 3d panora

相关标签:
1条回答
  • 2021-01-14 14:10

    So first you need to understand how stitching_detailed.cpp works. 1. features keypoint is detected in each image using SURF/ORB/SIFT or so. Then for each image pair, best feature matches are found and homography matrix is calculated and number of inliers for each pair is obtained

    (*finder)(img, features[i]); 
    
    
     BestOf2NearestMatcher matcher(try_cuda, match_conf);
     matcher(features, pairwise_matches);
    
    1. All these pairs are pased into leaveBiggestComponent to obtain largest set of images, which belong to a panorama.

    2. camera parameters or each image is calculated from above obtained set and warping and blending is done.

    step 1 will find homography for each pair and generate number of inliers. Step 2 will remove all those image pair for which confidence factor(number of inliers) is less than threshold. Since cam7 img has so less features and almost no overlapping region with any other image, it will get rejected in leavebiggestcomponent step.

    You can see features and mtaching in this link (I have used orbfeatures)

    https://drive.google.com/open?id=0B2wDitsftUG9QnhCWFIybENkbDA

    Also I have not changed the image size, but i guess reducing the image size a bit(by half maybe) will yield more feature points

    What you can do is reduce the time interval in which you take frame for stitching. To obtain good results, there must be atleast 40% overlapping region between images.

    0 讨论(0)
提交回复
热议问题