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

Go to the source code of this file.

Namespaces

namespace  hmap
 
namespace  hmap::gpu
 

Enumerations

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_RELATIVE_ELEVATION , hmap::gpu::LM_RUGGEDNESS ,
  hmap::gpu::LM_RUGOSITY_CONCAVE , hmap::gpu::LM_RUGOSITY_CONVEX
}
 Types of local metrics. More...
 

Functions

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::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::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)
 Compute the local maximum using a disk kernel.
 
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)
 Compute the local minimum using a disk kernel.
 
Array hmap::gpu::local_relief (const Array &array, int ir)
 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)
 See hmap::relative_elevation.
 
Array hmap::gpu::relative_elevation_square_kernel (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::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)
 Compute a local metric on the input array using a square neighborhood.
 

Detailed Description