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

Namespaces

namespace  hmap

Functions

void hmap::interpolate_array_bicubic (const Array &source, Array &target, bool endpoint=false, bool pixel_centered=true)
 Resample an array to a target array using bicubic interpolation.
void hmap::interpolate_array_bicubic (const Array &source, Array &target, const UvRect &uv_rect_source, const UvRect &uv_rect_target, bool endpoint=false, bool pixel_centered=true)
 Resample a source array into a target array using bicubic interpolation between two local axis-aligned bounding boxes.
void hmap::interpolate_array_bilinear (const Array &source, Array &target, bool endpoint=false, bool pixel_centered=true)
 Resample an array to a target array using bilinear interpolation.
void hmap::interpolate_array_bilinear (const Array &source, Array &target, const UvRect &uv_rect_source, const UvRect &uv_rect_target, bool endpoint=false, bool pixel_centered=true)
 Resample a source array into a target array using bilinear interpolation between two local axis-aligned bounding boxes.
void hmap::interpolate_array_nearest (const Array &source, Array &target, bool endpoint=false)
 Resample an array to a target array using nearest-neighbor interpolation.
void hmap::interpolate_array_nearest (const Array &source, Array &target, const UvRect &uv_rect_source, const UvRect &uv_rect_target, bool endpoint=false)
 Resample a source array into a target array using nearest-neighbor interpolation between two local axis-aligned bounding boxes.
Array hmap::resample_bicubic_warp (const Array &src, glm::ivec2 dst_shape, float warp=0.f, std::uint32_t seed=0)
 Resample an array to a target shape using cubic B-spline interpolation with optional domain noise warping.
void hmap::interpolate_terrain (const Array &h_source, Array &h_target, const CoordFrame &t_source, const CoordFrame &t_target, bool bilinear=true, float fill_value=0.f, Array *p_mask=nullptr)
 Project and interpolate a source terrain array onto a target terrain array using their world-space coordinate frames.
void hmap::flatten_terrain (Array &h_source1, const Array &h_source2, const CoordFrame &t_source1, const CoordFrame &t_source2, bool bilinear=true)
 Blend a second terrain array in-place onto a base terrain array using their world-space coordinate frames.
void hmap::flatten_terrain (const std::vector< const Array * > &h_sources, Array &h_target, const std::vector< const CoordFrame * > &t_sources, const CoordFrame &t_target, bool bilinear=true)
 Flatten multiple terrain arrays into a target array using their world-space coordinate frames.