Open jni opened 3 years ago
It might even be worth calling it just "label" to match the above-linked functions, but probably not — I always thought that name was not descriptive enough!
@jni I like the idea! We could do this for all box/sphere filters, and have box as default (because it's faster). That would make things easier to read 🙂
Regarding naming: How about this scheme?
Nice! Is label_spots
this function? 😃
Nice! Is
label_spots
this function? 😃
No, label_spots
takes a binary image to label pixels. It assumes that only single isolated pixels are 1. It's a faster version of connected_component_labeling
.
The method you look for is called pointlist_to_labelled_spots
Btw. discussions about optimal naming in the API are appreciated! 🙏
Currently, different versions of connected_components_labeling are spread out over different functions, e.g.
connected_components_labeling_box
. The API would be simpler if it were a single function with a connectivity parameter. Quoting @haesleinhuepf:And my response (only a month late 😅):