The documentation for ConnectedComponentImageFilter:
states that “The final object labels start with 1 and are consecutive”, but I’m noticing that this true only if the output background value is set to zero (default). If the output background is set to a non-zero value (by calling the SetBackgroundValue() routine of the filter), labels start at 0. They remain consecutive, except for skipping the background value if needed.
Does the documentation need an update?