Back to FabImage Library website
You are here: Start » Function Reference » Data Classification » Clustering » FindConnectedComponents

FindConnectedComponents
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationPro |
Finds connected components in a graph given as set of bidirectional connections.
Syntax
C++
C#
void fil::FindConnectedComponents ( const ftl::Array<ftl::Array<int> >& inConnections, ftl::Array<ftl::Array<int> >& outComponents, ftl::Array<int>& outElementLabels, bool& outFound = ftl::Dummy<bool>() )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inConnections | const Array<Array<int> >& | List of connections for each element | |
![]() |
outComponents | Array<Array<int> >& | List of input element indices for each connected component | |
![]() |
outElementLabels | Array<int>& | Index of a component for each input element | |
![]() |
outFound | bool& | Dummy<bool>() |