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

Header file for functions related to applying colorization and hillshading. More...

Go to the source code of this file.

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.
 

Detailed Description

Header file for functions related to applying colorization and hillshading.

Author
Otto Link (otto..nosp@m.link.nosp@m..bv@g.nosp@m.mail.nosp@m..com)

This file contains the declarations of functions that are used to apply colorization and hillshading effects to images and arrays. The functions allow for creating grayscale, histogram-based, and colored images from elevation data and other input arrays.