HighMap library (C++)
|
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 |
namespace | hmap::gpu |
Functions | |
Array | hmap::connected_components (const Array &array, float surface_threshold=0.f, float background_value=0.f) |
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, Vec2< float > 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, Vec3< float > 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. | |
Array | hmap::local_median_deviation (const Array &array, int ir) |
Computes the local median deviation of a 2D array. | |
Array | hmap::mean_local (const Array &array, int ir) |
Return the local mean based on a mean filter with a square kernel. | |
Array | hmap::relative_elevation (const Array &array, int ir) |
Calculates the relative elevation within a specified radius, helping to identify local highs and lows. | |
Array | hmap::ruggedness (const Array &array, int ir) |
Computes the ruggedness of each element in the input array. | |
Array | hmap::rugosity (const Array &z, int ir, bool convex=true) |
Estimates the rugosity of a surface by analyzing the skewness of the elevation data, which reflects surface roughness. | |
Array | hmap::std_local (const Array &array, int ir) |
Computes the local standard deviation of a 2D array. | |
Array | hmap::valley_width (const Array &z, int ir=0, bool ridge_select=false) |
Measures the valley width by calculating the distance from each point in a concave region to the frontier of that region. | |
Array | hmap::z_score (const Array &array, int ir) |
Array | hmap::gpu::local_median_deviation (const Array &array, int ir) |
See hmap::local_median_deviation. | |
Array | hmap::gpu::mean_local (const Array &array, int ir) |
See hmap::mean_local. | |
Array | hmap::gpu::relative_elevation (const Array &array, int ir) |
See hmap::relative_elevation. | |
Array | hmap::gpu::ruggedness (const Array &array, int ir) |
See hmap::ruggedness. | |
Array | hmap::gpu::rugosity (const Array &z, int ir, bool convex=true) |
See hmap::rugosity. | |
Array | hmap::gpu::std_local (const Array &array, int ir) |
See hmap::std_local. | |
Array | hmap::gpu::z_score (const Array &array, int ir) |
See hmap::z_score. | |
Header file defining a collection of functions for terrain analysis and feature extraction from heightmaps.