HighMap library (C++)
Loading...
Searching...
No Matches
connected_components.cpp File Reference

Namespaces

namespace  hmap
 

Functions

Array hmap::connected_components (const Array &array, float surface_threshold=0.f, float background_value=0.f, std::vector< float > *p_surfaces=nullptr, std::vector< std::array< float, 2 > > *p_centroids=nullptr)
 Identifies and labels connected components within a binary or labeled array, with optional filtering by size.