F:\06.项目项目\opencv拼接\imageStitching\imageStitching>imageStitching.exe
Rotation model images stitcher.
stitching_detailed img1 img2 [...imgN] [flags]
Flags:
--preview Run stitching in the preview mode. Works faster than usual mode,
but output image will have lower resolution.
--try_gpu (yes|no)
Try to use GPU. The default value is 'no'. All default values
are for CPU mode.
Motion Estimation Flags: --work_megapix <float> Resolution for image registration step. The default is 0.6 Mpx.
--features (surf|orb) Type of features used for images matching. The default is surf.
--match_conf <float> Confidence for feature matching step. The default is 0.65 for surf and 0.3 for orb. 这个我可能会单独配置
--conf_thresh <float> Threshold for two images are from the same panorama confidence.
The default is 1.0.
--ba (reproj|ray) Bundle adjustment cost function. The default is ray.
--ba_refine_mask (mask) Set refinement mask for bundle adjustment. It looks like 'x_xxx',
where 'x' means refine respective parameter and '_' means don't
refine one, and has the following format:
<fx><skew><ppx><aspect><ppy>. The default mask is 'xxxxx'. If bundle
adjustment doesn't support estimation of selected parameter then
the respective flag is ignored.
--wave_correct (no|horiz|vert) Perform wave effect correction. The default is 'horiz'.
--save_graph <file_name>
Save matches graph represented in DOT language to <file_name> file.
Labels description: Nm is number of matches, Ni is number of inliers,
C is confidence.
Compositing Flags: --warp (plane|cylindrical|spherical|fisheye|stereographic|compressedPlaneA2B1|
compressedPlaneA1.5B1|compressedPlanePortraitA2B1|compressedPlanePortraitA1.5B1|
paniniA2B1|paniniA1.5B1|paniniPortraitA2B1|paniniPortraitA1.5B1|mercator|transve
rseMercator)
Warp surface type. The default is 'spherical'.
--seam_megapix <float> Resolution for seam estimation step. The default is 0.1 Mpx.
--seam (no|voronoi|gc_color|gc_colorgrad) Seam estimation method. The default is 'gc_color'.
--compose_megapix <float> Resolution for compositing step. Use -1 for original resolution.
The default is -1.
--expos_comp (no|gain|gain_blocks) Exposure compensation method. The default is 'gain_blocks'.
--blend (no|feather|multiband) Blending method. The default is 'multiband'.
--blend_strength <float> Blending strength from [0,100] range. The default is 5.
--output <result_img>
The default is 'result.jpg'.
测试图片: