I have a binary image that I create in scikit-image like so:
img = image_to_process
from skimage.filters import threshold_li
thresh = threshold_li(img)
thresh_image = grayscale > thresh
On the resulting thresh_image (binary), I want to run a further segmentation step that separates the masked objects.
However I only find segmentation methods that run on grayscale (e.g. skimage.segmentation.watershed
) , but not on binary images. Do I understand this correctly, and if so, do you know of a way to separate objects in a binary image?
Thanks!