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

Namespaces

namespace  hmap
 

Functions

void hmap::apply_hillshade (Tensor &img, const Array &array, float vmin=0.f, float vmax=1.f, float exponent=1.f)
 Apply hillshading to a Tensor image.
 
void hmap::apply_hillshade (std::vector< uint8_t > &img, const Array &array, float vmin=0.f, float vmax=1.f, float exponent=1.f, bool is_img_rgba=false)
 Apply hillshading to an 8-bit image.
 
Tensor hmap::colorize (const Array &array, float vmin, float vmax, int cmap, bool hillshading, bool reverse=false, const Array *p_noise=nullptr)
 Apply colorization to an array.
 
Tensor hmap::colorize_grayscale (const Array &array)
 Convert an array to a grayscale image.
 
Tensor hmap::colorize_histogram (const Array &array)
 Convert an array to a histogram-based grayscale image.
 
Tensor hmap::colorize_slope_height_heatmap (const Array &array, int cmap)
 Colorizes a slope height heatmap based on the gradient norms of a given array.
 
Tensor hmap::colorize_vec2 (const Array &array1, const Array &array2)
 Combine two arrays into a colored image.