File tree Expand file tree Collapse file tree 4 files changed +6
-8
lines changed
Expand file tree Collapse file tree 4 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -246,12 +246,12 @@ def annotator_2d(
246246def main ():
247247 parser = _initialize_parser (description = "Run interactive segmentation for an image." )
248248 args = parser .parse_args ()
249- raw = util .load_image_data (args .input , ndim = 2 , key = args .key )
249+ raw = util .load_image_data (args .input , key = args .key )
250250
251251 if args .segmentation_result is None :
252252 segmentation_result = None
253253 else :
254- segmentation_result = util .load_image_data (args .segmentation_result , args .segmentation_key )
254+ segmentation_result = util .load_image_data (args .segmentation_result , key = args .segmentation_key )
255255
256256 if args .embedding_path is None :
257257 warnings .warn ("You have not passed an embedding_path. Restarting the annotator may take a long time." )
Original file line number Diff line number Diff line change @@ -294,12 +294,12 @@ def main():
294294
295295 parser = _initialize_parser (description = "Run interactive segmentation for an image volume." )
296296 args = parser .parse_args ()
297- raw = util .load_image_data (args .input , ndim = 3 , key = args .key )
297+ raw = util .load_image_data (args .input , key = args .key )
298298
299299 if args .segmentation_result is None :
300300 segmentation_result = None
301301 else :
302- segmentation_result = util .load_image_data (args .segmentation_result , args .segmentation_key )
302+ segmentation_result = util .load_image_data (args .segmentation_result , key = args .segmentation_key )
303303
304304 if args .embedding_path is None :
305305 warnings .warn ("You have not passed an embedding_path. Restarting the annotator may take a long time." )
Original file line number Diff line number Diff line change @@ -504,12 +504,12 @@ def main():
504504 )
505505
506506 args = parser .parse_args ()
507- raw = util .load_image_data (args .input , ndim = 3 , key = args .key )
507+ raw = util .load_image_data (args .input , key = args .key )
508508
509509 if args .tracking_result is None :
510510 tracking_result = None
511511 else :
512- tracking_result = util .load_image_data (args .tracking_result , args .tracking_key )
512+ tracking_result = util .load_image_data (args .tracking_result , key = args .tracking_key )
513513
514514 if args .embedding_path is None :
515515 warnings .warn ("You have not passed an embedding_path. Restarting the annotator may take a long time." )
Original file line number Diff line number Diff line change @@ -479,15 +479,13 @@ def get_centers_and_bounding_boxes(
479479
480480def load_image_data (
481481 path : str ,
482- ndim : Optional [int ] = None ,
483482 key : Optional [str ] = None ,
484483 lazy_loading : bool = False
485484) -> np .ndarray :
486485 """Helper function to load image data from file.
487486
488487 Args:
489488 path: The filepath to the image data.
490- ndim: The data dimensionality.
491489 key: The internal filepath for complex data formats like hdf5.
492490 lazy_loading: Whether to lazyly load data. Only supported for n5 and zarr data.
493491
You can’t perform that action at this time.
0 commit comments