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)