|
HighMap library (C++)
|
Go to the source code of this file.
Namespaces | |
| namespace | hmap |
| namespace | hmap::gpu |
Enumerations | |
| enum class | hmap::MinMaxKernel : int { hmap::DISK , hmap::OCTAGON , hmap::SQUARE } |
| Kernel footprint geometry for local minimum / maximum operations. More... | |
| enum | hmap::gpu::LocalMetrics : int { hmap::gpu::LM_LOCAL_ASPECT_VARIANCE , hmap::gpu::LM_LOCAL_MAX , hmap::gpu::LM_LOCAL_MEDIAN_DEVIATION , hmap::gpu::LM_LOCAL_MIN , hmap::gpu::LM_LOCAL_RELIEF , hmap::gpu::LM_LOCAL_VARIANCE , hmap::gpu::LM_LOCAL_MEAN , hmap::gpu::LM_LOCAL_SKEWNESS , hmap::gpu::LM_LOCAL_Z_SCORE , hmap::gpu::LM_TOPOGRAPHIC_POSITION_INDEX , hmap::gpu::LM_TOPOGRAPHIC_WETNESS_INDEX , hmap::gpu::LM_RELATIVE_ELEVATION , hmap::gpu::LM_ROUGHNESS , hmap::gpu::LM_RUGGEDNESS , hmap::gpu::LM_RUGOSITY_CONCAVE , hmap::gpu::LM_RUGOSITY_CONVEX , hmap::gpu::LM_TOPOGRAPHIC_RESIDUAL } |
| Types of local metrics. More... | |
Functions | |
| Array | hmap::path_length_to_outlet (const Array &z) |
| Computes the downstream path length to the domain outlet. | |
| Array | hmap::path_length_to_sink (const Array &z) |
| Computes the downstream path length to the nearest sink. | |
| Array | hmap::local_max (const Array &array, int ir) |
| Return the local maxima based on a maximum filter with a square kernel. | |
| Array | hmap::local_median_deviation (const Array &array, int ir) |
| Computes the local median deviation of a 2D array. | |
| Array | hmap::local_min (const Array &array, int ir) |
| Return the local minima based on a maximum filter with a square kernel. | |
| Array | hmap::local_mean (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::roughness (const Array &array, int ir) |
| Measures the local surface roughness within a given radius. | |
| 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::topographic_wetness_index (const Array &z, float talus_ref=0.f, float min_slope=1e-4f) |
| Computes the Topographic Wetness Index (TWI). | |
| Array | hmap::topographic_residual (const Array &z, int ir, bool normalize_output=false) |
| Computes the topographic residual (relief) relative to a smoothed surface. | |
| 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::gpu::local_aspect_variance (const Array &array, int ir) |
| Compute the average local aspect variance of an array. | |
| Array | hmap::gpu::local_max (const Array &array, int ir, MinMaxKernel kernel_type=MinMaxKernel::DISK) |
| Compute the local maximum using the specified kernel footprint. | |
| Array | hmap::gpu::local_max_disk (const Array &array, int ir) |
| Compute the local maximum using a disk kernel. | |
| Array | hmap::gpu::local_max_octagon (const Array &array, int ir) |
| Compute the local maximum using an octagonal kernel approximation via 4 separable 1D passes (horizontal, vertical, and two diagonals). | |
| Array | hmap::gpu::local_max_square (const Array &array, int ir) |
| Compute the local maximum using a square kernel with a 2-pass separable implementation. | |
| Array | hmap::gpu::local_median_deviation (const Array &array, int ir) |
| See hmap::local_median_deviation. | |
| Array | hmap::gpu::local_min (const Array &array, int ir, MinMaxKernel kernel_type=MinMaxKernel::DISK) |
| Compute the local minimum using the specified kernel footprint. | |
| Array | hmap::gpu::local_min_disk (const Array &array, int ir) |
| Compute the local minimum using a disk kernel. | |
| Array | hmap::gpu::local_min_octagon (const Array &array, int ir) |
| Compute the local minimum using an octagonal kernel approximation via 4 separable 1D passes (horizontal, vertical, and two diagonals). | |
| Array | hmap::gpu::local_min_square (const Array &array, int ir) |
| Compute the local minimum using a square kernel with a 2-pass separable implementation. | |
| Array | hmap::gpu::local_relief (const Array &array, int ir, MinMaxKernel kernel_type=MinMaxKernel::DISK) |
| Compute the local relief of an array. | |
| Array | hmap::gpu::local_variance (const Array &array, int ir) |
| Compute the average local variance of an array. | |
| Array | hmap::gpu::local_mean (const Array &array, int ir) |
| See hmap::local_mean. | |
| Array | hmap::gpu::local_skewness (const Array &array, int ir) |
| Array | hmap::gpu::local_z_score (const Array &array, int ir) |
| Compute the local z-score of an array. | |
| Array | hmap::gpu::topographic_position_index (const Array &array, int ir) |
| Compute the Topographic Position Index (TPI). | |
| Array | hmap::gpu::relative_elevation (const Array &array, int ir, MinMaxKernel kernel_type=MinMaxKernel::DISK) |
| See hmap::relative_elevation. | |
| Array | hmap::gpu::relative_elevation_square_kernel (const Array &array, int ir) |
| See hmap::relative_elevation. | |
| Array | hmap::gpu::roughness (const Array &array, int ir) |
| See hmap::roughness. | |
| 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::topographic_residual (const Array &z, int ir, bool normalize_output=false) |
| See hmap::topographic_residual. | |
| Array | hmap::gpu::valley_width (const Array &z, int ir=0, bool ridge_select=false) |
| See hmap::valley_width. | |
| Array | hmap::gpu::local_metrics (const Array &array, int ir, LocalMetrics metric, MinMaxKernel kernel_type=MinMaxKernel::DISK) |
| Compute a local metric on the input array using a square neighborhood. | |