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

Namespaces

namespace  hmap
 

Functions

Array hmap::quilting (const std::vector< const Array * > &p_arrays, hmap::Vec2< int > patch_base_shape, hmap::Vec2< int > tiling, float overlap, uint seed, std::vector< Array * > secondary_arrays={}, bool patch_flip=true, bool patch_rotate=true, bool patch_transpose=true, float filter_width_ratio=0.25f)
 Synthesize a new heightmap by stitching together small patches from input heightmaps.
 
Array hmap::quilting_blend (const std::vector< const Array * > &p_arrays, hmap::Vec2< int > patch_base_shape, float overlap, uint seed, bool patch_flip=true, bool patch_rotate=true, bool patch_transpose=true, float filter_width_ratio=0.25f)
 Synthesize a new heightmap by stitching together small patches from a list of input heightmaps.
 
Array hmap::quilting_expand (const Array &array, float expansion_ratio, hmap::Vec2< int > patch_base_shape, float overlap, uint seed, std::vector< Array * > secondary_arrays={}, bool keep_input_shape=false, bool patch_flip=true, bool patch_rotate=true, bool patch_transpose=true, float filter_width_ratio=0.25f)
 Synthesize a new heightmap by expanding the input heightmap and stitching patches.
 
Array hmap::quilting_shuffle (const Array &array, hmap::Vec2< int > patch_base_shape, float overlap, uint seed, std::vector< Array * > secondary_arrays={}, bool patch_flip=true, bool patch_rotate=true, bool patch_transpose=true, float filter_width_ratio=0.25f)
 Synthesize a new heightmap by reshuffling patches of the input heightmap.