Skip to content

Commit

Permalink
Add bigtiff overlays
Browse files Browse the repository at this point in the history
  • Loading branch information
ericup committed Jul 18, 2024
1 parent 48fde0c commit e9af625
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion celldetection_scripts/cpn_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e9af625

Please sign in to comment.