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

Namespaces

namespace  hmap
 

Functions

void hmap::recurve (Array &array, const std::vector< float > &t, const std::vector< float > &v)
 Apply a curve adjustment filter to the array.
 
void hmap::recurve (Array &array, const std::vector< float > &t, const std::vector< float > &v, const Array *p_mask)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
void hmap::recurve_bexp (Array &array, float tau=0.5f)
 Apply a curve adjustment filter using a "bumpy exponential-shape" curve.
 
void hmap::recurve_bexp (Array &array, float tau, const Array *p_mask)
 
void hmap::recurve_exp (Array &array, float tau=0.5f)
 Apply a curve adjustment filter using a "sharp exponential-shape" curve.
 
void hmap::recurve_exp (Array &array, float tau, const Array *p_mask)
 
void hmap::recurve_kura (Array &array, float a, float b)
 Apply a curve adjustment filter using Kumaraswamy's cumulative distribution function (CDF).
 
void hmap::recurve_kura (Array &array, float a, float b, const Array *p_mask)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
void hmap::recurve_s (Array &array)
 Apply a curve adjustment filter using a smooth "S-shape" curve.
 
void hmap::recurve_s (Array &array, const Array *p_mask)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
void hmap::recurve_smoothstep_rational (Array &array, float n)
 Apply a curve adjustment filter using an nth-order smoothstep curve.
 
void hmap::recurve_smoothstep_rational (Array &array, float n, const Array *p_mask)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
void hmap::saturate (Array &array, float vmin, float vmax, float from_min, float from_max, float k=0.f)
 Saturate the array values based on the input interval [vmin, vmax] (the output amplitude is not modified).
 
void hmap::saturate (Array &array, float vmin, float vmax, float k=0.f)