ConnectedComponentImageFilter vs HardConnectedComponentImageFilter

I’ve got a binary image (a thresholded head MR) for which I want to obtain the connected components. I see there are two filters that look plausible:

The first one says that the filter “experiments with some improvements to the existing implementation”. How experimental is it? Is the “existing implementation” still available in 5.3? If so, which filter? Is it more reliable?

I read the descriptions on the above pages but I can’t work out how to choose between the two filters. Are there use cases where one or the other is better suited?

ConnectedComponentImageFilter is one of the most used and well tested filters in ITK. The “existing implementation” might be HardConnectedComponentImageFilter, or has been removed from ITK long ago. Can you submit a PR removing mentions of experimentality from ConnectedComponentImageFilter? It is THE connected component filter.

1 Like

OK, see DOC: Revise class documentation, remove term 'experimental' by smr99 · Pull Request #5141 · InsightSoftwareConsortium/ITK · GitHub

2 Likes