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

Namespaces

namespace  hmap
 

Functions

Array hmap::dequantize (const Array &array, std::uint32_t seed, float dither_amplitude=0.01f, int filtering_iterations=1)
 Reduce quantization artifacts using dithering and smoothing.
 
Array hmap::quantize (const Array &array, int nlevels, float vmin, float vmax)
 Quantize array values into discrete levels.
 
Array hmap::quantize (const Array &array, int nlevels)
 Quantize array values using the array min/max range.