From e9af625953124df9600b437231fe7ec09d53cd53 Mon Sep 17 00:00:00 2001 From: ericup Date: Thu, 18 Jul 2024 11:29:40 +0200 Subject: [PATCH] Add bigtiff overlays --- celldetection_scripts/cpn_inference.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/celldetection_scripts/cpn_inference.py b/celldetection_scripts/cpn_inference.py index 65c6b5c..fd60d41 100644 --- a/celldetection_scripts/cpn_inference.py +++ b/celldetection_scripts/cpn_inference.py @@ -748,7 +748,7 @@ def load_inputs(x, dataset_name, method, tag, idx, ext_checks=('.h5',)): else: label_vis = cd.data.contours2overlay(y.get('contours'), img.shape[:2]) dst_ove_tif = dst.format(ext='_overlay.tif') - tifffile.imwrite(dst_ove_tif, label_vis, compression='ZLIB') + tifffile.imwrite(dst_ove_tif, label_vis, compression='ZLIB', bigtiff=label_vis.size > (2 ** 28)) output['overlay'] = label_vis out_files['overlay'] = dst_ove_tif