segmt.add_argument("outimg",type=str,help="Path to the output segmentation file (.tif, .shp, .gpkg, .gml).")
segmt.add_argument("outimg",type=str,help="Path to the output segmentation file (.tif, .shp, .gpkg, .gml).")
segmt.add_argument("--cw",type=float,default=0.5,help="Color weight in Baatz-Shape criterion.")
segmt.add_argument("--cw",type=float,default=0.5,help="Color weight in Baatz-Shape criterion.")
segmt.add_argument("--sw",type=float,default=0.5,help="Spatial weight in Baatz-Shape criterion.")
segmt.add_argument("--sw",type=float,default=0.5,help="Spatial weight in Baatz-Shape criterion.")
segmt.add_argument("--n_first_iter",type=int,default=12,help="Number of iterations for parallel tile processing.")
segmt.add_argument("--n_first_iter",type=int,default=12,help="Number of iterations for parallel tile processing (no use in light mode).")
segmt.add_argument("--tile_margin",type=int,default=100,help="Margin for tile overlap.")
segmt.add_argument("--tile_margin",type=int,default=100,help="Margin for tile overlap.")
segmt.add_argument("--roi",type=str,default=None,help="Vector file containing an ROI.")
segmt.add_argument("--roi",type=str,default=None,help="Vector file containing an ROI.")
segmt.add_argument("--n_proc",type=int,help="Number of cores to use.")
segmt.add_argument("--n_proc",type=int,help="Number of cores to use.")
segmt.add_argument("--mem_limit",type=int,help="Memory limit in MB.")
segmt.add_argument("--mem_limit",type=int,help="Memory limit in MB.")
segmt.add_argument("--use_light_alg",help="Use the sub-obtimal version of the algorithm. Faster but may have artefacts.",action='store_true')
segmt.add_argument("--keep_graph",help="Keep the graph files (.bin) after segmentation.",action='store_true')
segmt.add_argument("--keep_graph",help="Keep the graph files (.bin) after segmentation.",action='store_true')
segmt.add_argument("--force_parallel",help="Force the spot6/7 preprocess one-liner parallelization of the process even if the full graph fits in memory.",action='store_true')
segmt.add_argument("--force_parallel",help="Force the spot6/7 preprocess one-liner parallelization of the process even if the full graph fits in memory.",action='store_true')