Skip to content
Snippets Groups Projects
Commit d89fd306 authored by Guillaume-Jean Herbiet's avatar Guillaume-Jean Herbiet
Browse files

Fixed raw connected component count.

In ConnectedComponents, the number of components is available either via
a counter (connectedComponents), or by using the size of the
connectedComponentSize map. The former allow easy access to the number of
components (raw count), the second to filter the result based on component
size restriction at a cost of a more complex operation.

The count update could, in some cases, create empty connected components. Those
were counted and lead to erroneous results where the raw count of connected
components was used. Empty connected components are now filtered out during the
raw and size-based count.
parent 0215582c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment