scallops.segmentation.util.remove_boundary_labels

scallops.segmentation.util.remove_boundary_labels(labels, relabel=False)

Remove labels at image boundaries.

Parameters:
  • labels (ndarray) – An array of labels, which must be non-negative integers.

  • relabel (bool) – Whether to relabel the labels.

Returns:

Labels with boundaries removed

Return type:

ndarray