Replies: 2 comments 9 replies
-
This library isn't meant to perform the segmentation by itself. I can see how integrating CCL into a segmentation algorithm could possibly improve overall performance, but the operations are fundamentally different. This CCL library operates on pre-segmented data in order to avoid introducing a dependency on a particular segmentation algorithm (which can range from a simple threshold to a complex neural net). |
Beta Was this translation helpful? Give feedback.
-
Something like this? :D I made a quick prototype. Image is from https://en.wikipedia.org/wiki/Scanning_electron_microscope#/media/File:Misc_pollen.jpg Code + I clicked on a few segments. import numpy as np
import cc3d
from cloudvolume import hyperview, view
from PIL import Image
img = Image.open("Misc_pollen.jpg")
img = np.array(img)[:,:,0]
img = (img > 55) * img
out = cc3d.connected_components(img, connectivity=8, delta=10)
hyperview(img.T, out.T) |
Beta Was this translation helpful? Give feedback.
-
Can it handle continuous data? For example, connect voxels with similar values.
I saw a similar function on SimpleITK, which uses connected components to segment lungs or other organs with close values.
Beta Was this translation helpful? Give feedback.
All reactions