From babd9278cd682b0368b64433034c8258e5b555fa Mon Sep 17 00:00:00 2001 From: Ran Lu Date: Wed, 15 May 2024 21:17:40 -0400 Subject: [PATCH] Agglomerate segments during cutout --- scripts/cut_chunk_cs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/cut_chunk_cs.py b/scripts/cut_chunk_cs.py index e20315e..af145b1 100644 --- a/scripts/cut_chunk_cs.py +++ b/scripts/cut_chunk_cs.py @@ -38,7 +38,7 @@ def write_metadata(fn, offset, size, ac_offset, low, high, boundaries): aff_cutout = cut_data(aff, start_coord, end_coord, boundary_flags) save_raw_data("aff.raw", aff_cutout) -seg = load_data(os.environ['SEG_PATH'], mip=global_param['AFF_RESOLUTION'], fill_missing=global_param.get('SEG_FILL_MISSING', False)) +seg = load_data(os.environ['SEG_PATH'], mip=global_param['AFF_RESOLUTION'], fill_missing=global_param.get('SEG_FILL_MISSING', False), agglomerate=True) seg_cutout = cut_data(seg, start_coord, end_coord, boundary_flags) save_raw_data("seg.raw", seg_cutout)