Ask Your Question
0

Help with stitching in scan / affine mode

asked 2019-02-06 11:49:57 -0600

ljh gravatar image

Can anyone help me recreate the stitching demos from https://docs.opencv.org/master/d8/d19...

I have compiled opencv latest 4.0.1dev as well as 4.0.0 on both Ubuntu 18.04 and MacOS

Each time I try and stitch using the example images of Budapest map and newspaper the results output are not the full panoramic image. for example, the newspaper stitched output is missing the blue masthead with the text 'denik' in a large font.

I am very keen to find settings to make opencv work for stitching in panoramic mode.

I have also tried using the stiching_detailed tutorial example but have had no luck in producing accurate stitched output.

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2019-02-06 14:31:23 -0600

LBerger gravatar image

Have you try :

For images captured using a scanner or a drone ( affine motion) you can use those arguments on command line :

newspaper1.jpg newspaper2.jpg –work_megapix 0.6 –features surf –matcher affine –estimator affine –match_conf 0.3 –conf_thresh 0.3 –ba affine –ba_refine_mask xxxxx –wave_correct no –warp affine

edit flag offensive delete link more

Comments

1

Thanks LBerger.

(–match_conf 0.3 –conf_thresh 0.3 resulted in a wonky panorama image) so i adjusted to use the following and the output is now as expected

--features surf --matcher affine --estimator affine --match_conf 0.6 --conf_thresh 0.6 --ba affine --ba_refine_mask xxxxx --wave_correct no --warp affine newspaper1.jpg newspaper2.jpg newspaper3.jpg newspaper4.jpg

ljh gravatar imageljh ( 2019-02-06 18:53:22 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2019-02-06 11:49:57 -0600

Seen: 968 times

Last updated: Feb 06 '19