arrlp.relabel module

arrlp.relabel(labels)[source]

This function redefines a label array to fill potential holes inside the considered labels.

Parameters:

labels (np.array) – Array of labels.

Returns:

newlabels – New array of labels.

Return type:

np.array

Examples

>>> from arrlp import relabel
...
>>> relabel(array)