ilastik / ilastik

ilastik-shell, applets, and workflows to string them together.
https://ilastik.org
Other
352 stars 130 forks source link

Thresholding: Support multiple foreground classes #980

Open stuarteberg opened 10 years ago

stuarteberg commented 10 years ago

Suppose a user does pixel classification and produces a segmentation with three label classes: background/class A/class B. To convert this data to an object-level segmentation, the user would be forced to combine the foreground classes in an external tool. The problem will be that if two objects of different types are touching, they'll be merged as a single object.

One solution to this is to perform thresholding on each foreground label independently, and then simply merge the resulting connected component images.

Note: This is different, but perhaps related, to issue #977

Edit: Upon further consideration, it seems like perhaps #977 would be a more general solution than this feature. It could be written to solve the A-touches-A problem in addition to the A-touches-B problem.

burgerdev commented 10 years ago

I am not convinced that #977 is more general than your suggested solution. The merging of connected components would have to be available for all 3 thresholding methods, not just for two-level thresholding, right?