Skip to content
Snippets Groups Projects
Commit 8a46a99a authored by Christopher Randolph Rhodes's avatar Christopher Randolph Rhodes
Browse files

Call MIP method directly

parent 546dbc1d
No related branches found
No related tags found
No related merge requests found
...@@ -91,10 +91,9 @@ def get_label_ids(acc_seg_mask: GenericImageDataAccessor, allow_3d=False, connec ...@@ -91,10 +91,9 @@ def get_label_ids(acc_seg_mask: GenericImageDataAccessor, allow_3d=False, connec
la_3d[:, :, 0, zi] = la_2d la_3d[:, :, 0, zi] = la_2d
return InMemoryDataAccessor(la_3d) return InMemoryDataAccessor(la_3d)
else: else:
# TODO: call argmax z method
return InMemoryDataAccessor( return InMemoryDataAccessor(
label( label(
acc_seg_mask.data_xyz.max(axis=-1), acc_seg_mask.get_mip().data_xy,
connectivity=1, connectivity=1,
).astype('uint16') ).astype('uint16')
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment