|
HighMap library (C++)
|
Header file for 2D image and raster export functionalities. More...
Go to the source code of this file.
Namespaces | |
| namespace | hmap |
Functions | |
| std::string | hmap::export_as_ascii (const Array &array, const glm::ivec2 &export_shape={64, 64}, const std::string chars_map=" .:-=+*#%@") |
| Export a 2D array as an ASCII-art string representation. | |
| void | hmap::export_as_cubemap (const std::string &fname, const Array &z, int cubemap_resolution=128, float overlap=0.25f, int ir=16, Cmap cmap=static_cast< Cmap >(0), bool splitted=false, Array *p_cubemap=nullptr) |
| Exports a 2D array as a cubemap texture with continuity enforcement and overlapping regions. | |
| void | hmap::export_banner_png (const std::string &fname, const std::vector< Array > &arrays, int cmap, bool hillshading=false, bool normalize_arrays=false) |
| Exports a set of arrays as a banner PNG image file. | |
| bool | hmap::export_image (const Array &array, const std::string &fname, const ImageWriterConfig &config={}) |
| Exports an array using the generic ImageWriter pipeline. | |
| bool | hmap::export_image (const VirtualArray &va, const std::string &fname, const ImageWriterConfig &config={}) |
| Exports a VirtualArray incrementally using the generic ImageWriter pipeline. | |
| bool | hmap::export_image (const VirtualArray &va, const std::string &fname, const ImageWriterConfig &config, const ComputeMode &cm) |
| Exports a VirtualArray incrementally with custom compute mode. | |
| bool | hmap::export_image (const VirtualTexture &vt, const std::string &fname, const ImageWriterConfig &config={}) |
| Exports a VirtualTexture incrementally using the generic ImageWriter pipeline. | |
| bool | hmap::export_image (const VirtualTexture &vt, const std::string &fname, const ImageWriterConfig &config, const ComputeMode &cm) |
| Exports a VirtualTexture incrementally with custom compute mode. | |
| bool | hmap::export_virtual_array (const VirtualArray &va, ImageWriter &writer) |
| Streams a VirtualArray tile-by-tile into an already opened ImageWriter. | |
| bool | hmap::export_virtual_array (const VirtualArray &va, ImageWriter &writer, const ComputeMode &cm) |
| Streams a VirtualArray tile-by-tile into an already opened ImageWriter with custom compute mode. | |
| bool | hmap::export_virtual_array (const VirtualTexture &vt, ImageWriter &writer) |
| Streams a VirtualTexture tile-by-tile into an already opened ImageWriter. | |
| bool | hmap::export_virtual_array (const VirtualTexture &vt, ImageWriter &writer, const ComputeMode &cm) |
| Streams a VirtualTexture tile-by-tile into an already opened ImageWriter with custom compute mode. | |
| void | hmap::export_normal_map_png (const std::string &fname, const Array &array, int depth=CV_8U) |
| Exports the heightmap normal map as an 8-bit PNG file. | |
| void | hmap::export_splatmap_png (const std::string &fname, const Array *p_r, const Array *p_g=nullptr, const Array *p_b=nullptr, const Array *p_a=nullptr, int depth=CV_8U) |
| Exports four arrays as an RGBA PNG splatmap. | |
| void | hmap::export_tiled (const std::string &fname_radical, const std::string &fname_extension, const Array &array, const glm::ivec2 &tiling, int leading_zeros=0, int depth=CV_8U, bool overlapping_edges=false, bool reverse_tile_y_indexing=false) |
| Exports a 2D array as a set of grayscale PNG image tiles. | |
| Array | hmap::read_to_array (const std::string &fname, bool flip_j=false, bool remap=true) |
| Reads an image file and converts it to a 2D array. | |
Header file for 2D image and raster export functionalities.
This header declares functions for exporting heightmaps and arrays to image formats (PNG, cubemaps, banners, splatmaps, tiled textures, ASCII art) and reading raster images into arrays.