parser.add_argument('img_names',nargs='+',help='files to stitch',type=str)
parser.add_argument('--preview',help='Run stitching in the preview mode. Works faster than usual mode but output image will have lower resolution.',type=bool,dest='preview')
parser.add_argument('--try_cuda',action='store',default=False,help='Try to use CUDA. The default value is no. All default values are for CPU mode.',type=bool,dest='try_cuda')
parser.add_argument('--work_megapix',action='store',default=0.6,help=' Resolution for image registration step. The default is 0.6 Mpx',type=float,dest='work_megapix')
parser.add_argument('--features',action='store',default='orb',help='Type of features used for images matching. The default is orb.',type=str,dest='features')
parser.add_argument('--matcher',action='store',default='homography',help='Matcher used for pairwise image matching.',type=str,dest='matcher')
parser.add_argument('--estimator',action='store',default='homography',help='Type of estimator used for transformation estimation.',type=str,dest='estimator')
parser.add_argument('--match_conf',action='store',default=0.3,help='Confidence for feature matching step. The default is 0.65 for surf and 0.3 for orb.',type=float,dest='match_conf')
parser.add_argument('--conf_thresh',action='store',default=1.0,help='Threshold for two images are from the same panorama confidence.The default is 1.0.',type=float,dest='conf_thresh')
parser.add_argument('--ba',action='store',default='ray',help='Bundle adjustment cost function. The default is ray.',type=str,dest='ba')
parser.add_argument('--ba_refine_mask',action='store',default='xxxxx',help='Set refinement mask for bundle adjustment. mask is "xxxxx"',type=str,dest='ba_refine_mask')
parser.add_argument('--wave_correct',action='store',default='horiz',help='Perform wave effect correction. The default is "horiz"',type=str,dest='wave_correct')
parser.add_argument('--save_graph',action='store',default=None,help='Save matches graph represented in DOT language to <file_name> file.',type=str,dest='save_graph')
parser.add_argument('--warp',action='store',default='plane',help='Warp surface type. The default is "spherical".',type=str,dest='warp')
parser.add_argument('--seam_megapix',action='store',default=0.1,help=' Resolution for seam estimation step. The default is 0.1 Mpx.',type=float,dest='seam_megapix')
parser.add_argument('--seam',action='store',default='no',help='Seam estimation method. The default is "gc_color".',type=str,dest='seam')
parser.add_argument('--compose_megapix',action='store',default=-1,help='Resolution for compositing step. Use -1 for original resolution.',type=float,dest='compose_megapix')
parser.add_argument('--expos_comp',action='store',default='no',help='Exposure compensation method. The default is "gain_blocks".',type=str,dest='expos_comp')
parser.add_argument('--expos_comp_nr_feeds',action='store',default=1,help='Number of exposure compensation feed.',type=np.int32,dest='expos_comp_nr_feeds')
parser.add_argument('--expos_comp_nr_filtering',action='store',default=2,help='Number of filtering iterations of the exposure compensation gains',type=float,dest='expos_comp_nr_filtering')
parser.add_argument('--expos_comp_block_size',action='store',default=32,help='BLock size in pixels used by the exposure compensator.',type=np.int32,dest='expos_comp_block_size')
parser.add_argument('--blend',action='store',default='multiband',help='Blending method. The default is "multiband".',type=str,dest='blend')
parser.add_argument('--blend_strength',action='store',default=5,help='Blending strength from [0,100] range.',type=np.int32,dest='blend_strength')
parser.add_argument('--output',action='store',default='result.jpg',help='The default is "result.jpg"',type=str,dest='output')
parser.add_argument('--timelapse',action='store',default=None,help='Output warped images separately as frames of a time lapse movie, with "fixed_" prepended to input file names.',type=str,dest='timelapse')
parser.add_argument('--rangewidth',action='store',default=-1,help='uses range_width to limit number of images to match with.',type=int,dest='rangewidth')
parser=argparse.ArgumentParser(prog='stitching_detailed.py',description='Rotation model images stitcher')
parser.add_argument('img_names',nargs='+',help='files to stitch',type=str)
parser.add_argument('--preview',help='Run stitching in the preview mode. Works faster than usual mode but output image will have lower resolution.',type=bool,dest='preview')
parser.add_argument('--try_cuda',action='store',default=False,help='Try to use CUDA. The default value is no. All default values are for CPU mode.',type=bool,dest='try_cuda')
parser.add_argument('--work_megapix',action='store',default=0.6,help=' Resolution for image registration step. The default is 0.6 Mpx',type=float,dest='work_megapix')
parser.add_argument('--features',action='store',default='orb',help='Type of features used for images matching. The default is orb.',type=str,dest='features')
parser.add_argument('--matcher',action='store',default='homography',help='Matcher used for pairwise image matching.',type=str,dest='matcher')
parser.add_argument('--estimator',action='store',default='homography',help='Type of estimator used for transformation estimation.',type=str,dest='estimator')
parser.add_argument('--match_conf',action='store',default=0.3,help='Confidence for feature matching step. The default is 0.65 for surf and 0.3 for orb.',type=float,dest='match_conf')
parser.add_argument('--conf_thresh',action='store',default=1.0,help='Threshold for two images are from the same panorama confidence.The default is 1.0.',type=float,dest='conf_thresh')
parser.add_argument('--ba',action='store',default='ray',help='Bundle adjustment cost function. The default is ray.',type=str,dest='ba')
parser.add_argument('--ba_refine_mask',action='store',default='xxxxx',help='Set refinement mask for bundle adjustment. mask is "xxxxx"',type=str,dest='ba_refine_mask')
parser.add_argument('--wave_correct',action='store',default='horiz',help='Perform wave effect correction. The default is "horiz"',type=str,dest='wave_correct')
parser.add_argument('--save_graph',action='store',default=None,help='Save matches graph represented in DOT language to <file_name> file.',type=str,dest='save_graph')
parser.add_argument('--warp',action='store',default='plane',help='Warp surface type. The default is "spherical".',type=str,dest='warp')
parser.add_argument('--seam_megapix',action='store',default=0.1,help=' Resolution for seam estimation step. The default is 0.1 Mpx.',type=float,dest='seam_megapix')
parser.add_argument('--seam',action='store',default='no',help='Seam estimation method. The default is "gc_color".',type=str,dest='seam')
parser.add_argument('--compose_megapix',action='store',default=-1,help='Resolution for compositing step. Use -1 for original resolution.',type=float,dest='compose_megapix')
parser.add_argument('--expos_comp',action='store',default='no',help='Exposure compensation method. The default is "gain_blocks".',type=str,dest='expos_comp')
parser.add_argument('--expos_comp_nr_feeds',action='store',default=1,help='Number of exposure compensation feed.',type=np.int32,dest='expos_comp_nr_feeds')
parser.add_argument('--expos_comp_nr_filtering',action='store',default=2,help='Number of filtering iterations of the exposure compensation gains',type=float,dest='expos_comp_nr_filtering')
parser.add_argument('--expos_comp_block_size',action='store',default=32,help='BLock size in pixels used by the exposure compensator.',type=np.int32,dest='expos_comp_block_size')
parser.add_argument('--blend',action='store',default='multiband',help='Blending method. The default is "multiband".',type=str,dest='blend')
parser.add_argument('--blend_strength',action='store',default=5,help='Blending strength from [0,100] range.',type=np.int32,dest='blend_strength')
parser.add_argument('--output',action='store',default='result.jpg',help='The default is "result.jpg"',type=str,dest='output')
parser.add_argument('--timelapse',action='store',default=None,help='Output warped images separately as frames of a time lapse movie, with "fixed_" prepended to input file names.',type=str,dest='timelapse')
parser.add_argument('--rangewidth',action='store',default=-1,help='uses range_width to limit number of images to match with.',type=int,dest='rangewidth')