haesleinhuepf / napari-skimage-regionprops

Feature extraction for labeled objects in images using regionprops from scikit-image
BSD 3-Clause "New" or "Revised" License
47 stars 13 forks source link

Enable re-labeling non-sequential label images #48

Closed haesleinhuepf closed 1 year ago

haesleinhuepf commented 1 year ago

It might be nice to enable re-labeling of non-sequentially labeled images / measurements. Therefore, we need to use skimage map_array. We might want to program a function similar to this one and then use it from the clusters-plotter for example:

https://github.com/haesleinhuepf/napari-skimage-regionprops/blob/25a07895e06a3e6c8c4a32b3e5e522a308f93983/napari_skimage_regionprops/_parametric_images.py#L73

We should not change the existing function for backwards-compatibility reasons. But if the new one works nicely, we can mark the old as deprecated.

CC @lazigu @marabuuu