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

Namespaces

namespace  hmap
 

Functions

Array hmap::scan_mask (const Array &array, float contrast=0.5f, float brightness=0.5f)
 Mask adjustement using a 'scanning' method.
 
Array hmap::select_angle (const Array &array, float angle, float sigma, int ir=0)
 Return angle selection for a given angle and a tolerance half-width on this value.
 
Array hmap::select_blob_log (const Array &array, int ir)
 Return blob detection using the Laplacian of Gaussian (LoG) approach.
 
Array hmap::select_cavities (const Array &array, int ir, bool concave=true)
 Return holes or bumps detection based on the mean curvature of the heightmap.
 
Array hmap::select_elevation_slope (const Array &array, float gradient_scale, float vmax)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
Array hmap::select_elevation_slope (const Array &array, float gradient_scale)
 
Array hmap::select_eq (const Array &array, float value)
 Return an array with elements equal to 1 where input elements are equal to value.
 
Array hmap::select_gt (const Array &array, float value)
 Return an array with elements equal to 1 where input elements are larger than value.
 
Array hmap::select_gradient_angle (const Array &array, float angle)
 Return an array weighted by the gap between the gradient angle and a given angle.
 
Array hmap::select_gradient_binary (const Array &array, float talus_center)
 Return an array filled with 1 where the gradient is larger than a given value and 0 elsewhere.
 
Array hmap::select_gradient_exp (const Array &array, float talus_center, float talus_sigma)
 Return an array weighted (exponantial decay) by the gradient norm of the input array.
 
Array hmap::select_gradient_inv (const Array &array, float talus_center, float talus_sigma)
 Return an array weighted (square inverse) by the gradient norm of the input array.
 
Array hmap::select_interval (const Array &array, float value1, float value2)
 Return an array with elements equal to 1 where input elements are within the bounds provided.
 
Array hmap::select_inward_outward_slope (const Array &array, Vec2< float > center={0.5f, 0.5f}, Vec4< float > bbox={0.f, 1.f, 0.f, 1.f})
 Return an array with positive values if the slope is pointing to the center (slope is inward), and negative values otherwise (slope is outward).
 
Array hmap::select_lt (const Array &array, float value)
 Return an array with elements equal to 1 where input elements are smaller than value.
 
Array hmap::select_midrange (const Array &array, float gain, float vmin, float vmax)
 Selects the midrange values of the input array within a specified range.
 
Array hmap::select_midrange (const Array &array, float gain)
 Selects and scales the midrange values of the input array.
 
void hmap::select_multiband3 (const Array &array, Array &band_low, Array &band_mid, Array &band_high, float ratio1, float ratio2, float overlap, float vmin, float vmax)
 Splits the input array into three bands (low, mid, and high) based on given ratios and overlap.
 
void hmap::select_multiband3 (const Array &array, Array &band_low, Array &band_mid, Array &band_high, float ratio1, float ratio2, float overlap)
 Splits the input array into three bands (low, mid, and high) based on given ratios and overlap.
 
Array hmap::select_pulse (const Array &array, float value, float sigma)
 Return an array filled with non-zero values where the input is in the interval [value - sigma, value + sigma]. Output array values have a cubic pulse distribution within this interval.
 
Array hmap::select_rivers (const Array &array, float talus_ref, float clipping_ratio)
 Return an array filled with a criterion based on the occurence of a river bed.
 
Array hmap::select_transitions (const Array &array1, const Array &array2, const Array &array_blend)
 Return an array filled with 1 at the blending transition between two arrays, and 0 elsewhere.
 
Array hmap::select_valley (const Array &z, int ir, bool zero_at_borders=true, bool ridge_select=false)