HighMap library (C++)
Loading...
Searching...
No Matches
features.hpp File Reference

Header file defining a collection of functions for terrain analysis and feature extraction from heightmaps. More...

Go to the source code of this file.

Namespaces

namespace  hmap
 

Functions

Array hmap::connected_components (const Array &array, float surface_threshold=0.f, float background_value=0.f, std::map< float, float > *p_surfaces=nullptr, std::map< float, std::array< float, 2 > > *p_centroids=nullptr)
 Identifies and labels connected components within a binary or labeled array, with optional filtering by size.
 
Array hmap::geomorphons (const Array &array, int irmin, int irmax, float epsilon)
 Classifies terrain into geomorphological features based on the geomorphons method.
 
Array hmap::kmeans_clustering2 (const Array &array1, const Array &array2, int nclusters, std::vector< Array > *p_scoring=nullptr, Array *p_aggregate_scoring=nullptr, glm::vec2 weights={1.f, 1.f}, uint seed=1)
 Performs k-means clustering on two input arrays, grouping similar data points into clusters.
 
Array hmap::kmeans_clustering3 (const Array &array1, const Array &array2, const Array &array3, int nclusters, std::vector< Array > *p_scoring=nullptr, Array *p_aggregate_scoring=nullptr, glm::vec3 weights={1.f, 1.f, 1.f}, uint seed=1)
 Performs k-means clustering on three input arrays, providing more detailed cluster analysis by considering an additional dimension.
 

Detailed Description

Header file defining a collection of functions for terrain analysis and feature extraction from heightmaps.

Author
Otto Link (otto..nosp@m.link.nosp@m..bv@g.nosp@m.mail.nosp@m..com)