Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connected component analysis #36

Open
tischi opened this issue Dec 14, 2020 · 2 comments
Open

Connected component analysis #36

tischi opened this issue Dec 14, 2020 · 2 comments

Comments

@tischi
Copy link
Collaborator

tischi commented Dec 14, 2020

@manerotoni @ssgpers @haesleinhuepf @dlegland @stelfrich

I am working on teaching material for connected component analysis.

Just recently I realised that the input to a CCA does not need to be a binary image, but could be multi valued.
The algorithm will just assign the same label index to neighbouring pixels of the same value.

I tested this in MLJ and also there it works for multi valued images even though the menu entry in Fiji suggests that the input should be a binary image.

Is that a consensus that CCA should accept also multi valued images as an input?

@dlegland
Copy link

Hi,

IMHO, the basis of CCA is to transform a binary image into a label image. So, if there is a consensus, it would be more to restrict the definition to binary images.

It may be possible to extend the definition to multi-valued images such as label maps, but this complicates the definition and the implementation. The scikit-image library allows applying CCA to label maps for example.

Also, I think that if it works in MLJ, it does not handle the case of contiguous regions, so handle with care!

@tischi
Copy link
Collaborator Author

tischi commented Dec 14, 2020

Hi @dlegland,

IMHO, the basis of CCA is to transform a binary image into a label image.

Some weeks ago I would have agreed, but at I2K @frauzufall presented a workflow for cell segmentation ground-truth annotation in LabKit, which relied on the fact that downstream CCA would also work on multi-valued images. The idea was that one could draw the same label index for all non-touching cells and only needed distinct labels for touching cells. This is much more convenient than having to draw a different label for each and every cell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants