@@ -45,6 +45,11 @@ def cli():
4545 "--batch_size" , default = 250 , type = int , show_default = True ,
4646 help = "number of patches fed into the iSyntax SDK at one time"
4747)
48+ @click .option (
49+ "--fill_color" , type = click .IntRange (min = 0 , max = 255 ), default = 0 ,
50+ show_default = True ,
51+ help = "background color for missing tiles (0-255)"
52+ )
4853@click .option (
4954 "--debug" , is_flag = True ,
5055 help = "enable debugging" ,
@@ -53,7 +58,7 @@ def cli():
5358@click .argument ("output_path" )
5459def write_tiles (
5560 tile_width , tile_height , resolutions , file_type , max_workers , batch_size ,
56- input_path , output_path , debug
61+ input_path , output_path , fill_color , debug
5762):
5863 level = logging .INFO
5964 if debug :
@@ -65,7 +70,7 @@ def write_tiles(
6570 )
6671 with WriteTiles (
6772 tile_width , tile_height , resolutions , file_type , max_workers ,
68- batch_size , input_path , output_path
73+ batch_size , input_path , output_path , fill_color
6974 ) as wt :
7075 wt .write_metadata ()
7176 wt .write_label_image ()
0 commit comments