Skip to contents

Reindex positive region labels to a compact sequence

Usage

reindex_regions(labels)

Arguments

labels

Matrix of integer labels.

Value

Matrix with positive labels remapped to 1:n.