Skip to content

erode_labels also relabels all labels #330

Description

@MariusCausemann

Hi,
I noticed that the erode_labels function not only erodes the labels, but also applies a relabel_sequential to the eroded labels. I see that this might be useful in some cases, but I think it is somewhat unexpected behaviour (and for my applications undesirable). Would it be possible to either remove the relabel_sequential in https://github.com/clEsperanto/pyclesperanto_prototype/blob/413e3fadbff7d5db07c98d614cd5e2d2a94ae38c/pyclesperanto_prototype/_tier4/_erode_labels.py#L66C9-L66C27
or make it optional (preferably in erode_labels and e.g. opening_labels, etc.)?

Best,
Marius

PS: thanks for the great library!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions