|
HighMap library (C++)
|
Header file for functions related to applying colorization and hillshading. More...
Go to the source code of this file.
Classes | |
| struct | hmap::ColorAdjust |
Namespaces | |
| namespace | hmap |
Enumerations | |
| enum | hmap::NormalMapBlendingMethod : int { hmap::NMAP_LINEAR , hmap::NMAP_DERIVATIVE , hmap::NMAP_UDN , hmap::NMAP_UNITY , hmap::NMAP_WHITEOUT } |
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. | |
| void | hmap::color_adjust (VirtualTexture &tex, ColorAdjust param, const ComputeMode &cm) |
| 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. | |
| void | hmap::colorize (VirtualTexture &out, VirtualArray &level, const ComputeMode &cm, float vmin, float vmax, int cmap, VirtualArray *p_alpha=nullptr, bool reverse=false, VirtualArray *p_noise=nullptr) |
| Colorize a scalar field into a texture using a predefined colormap. | |
| void | hmap::colorize (VirtualTexture &out, VirtualArray &level, const ComputeMode &cm, float vmin, float vmax, const std::vector< float > &positions, const std::vector< glm::vec3 > &colormap_colors, VirtualArray *p_alpha=nullptr, bool reverse=false, VirtualArray *p_noise=nullptr) |
| Colorize a scalar field into a texture using a custom colormap. | |
| 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. | |
| void | hmap::luminance (VirtualArray &out, VirtualTexture &tex, const ComputeMode &cm) |
| Compute luminance from a texture. | |
| void | hmap::mix (VirtualTexture &out, VirtualTexture &tex1, VirtualTexture &tex2, const ComputeMode &cm, bool use_sqrt_avg=true) |
| Mix two textures into an output texture. | |
| void | hmap::mix (VirtualTexture &out, std::vector< VirtualTexture * > &texs, const ComputeMode &cm, bool use_sqrt_avg=true) |
| void | hmap::mix_normal_map (VirtualTexture &out, VirtualTexture &nmap_base, VirtualTexture &nmap_detail, const ComputeMode &cm, float detail_scaling, NormalMapBlendingMethod blending_method) |
| Blend two normal maps into a single output normal map. | |
Header file for functions related to applying colorization and hillshading.
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.