58 glm::ivec2 patch_shape,
60 float error_threshold = 0.1f);
95Array
quilting(
const std::vector<const Array *> &p_arrays,
96 glm::ivec2 patch_base_shape,
100 std::vector<Array *> secondary_arrays = {},
101 bool patch_flip =
true,
102 bool patch_rotate =
true,
103 bool patch_transpose =
true,
104 float filter_width_ratio = 0.25f);
139 glm::ivec2 patch_base_shape,
142 bool patch_flip =
true,
143 bool patch_rotate =
true,
144 bool patch_transpose =
true,
145 float filter_width_ratio = 0.25f);
185 float expansion_ratio,
186 glm::ivec2 patch_base_shape,
189 std::vector<Array *> secondary_arrays = {},
190 bool keep_input_shape =
false,
191 bool patch_flip =
true,
192 bool patch_rotate =
true,
193 bool patch_transpose =
true,
194 float filter_width_ratio = 0.25f);
230 glm::ivec2 patch_base_shape,
233 std::vector<Array *> secondary_arrays = {},
234 bool patch_flip =
true,
235 bool patch_rotate =
true,
236 bool patch_transpose =
true,
237 float filter_width_ratio = 0.25f);
Declaration of the Array class for 2D floating-point arrays with various mathematical operations and ...
Definition algebra.hpp:23
Array quilting_blend(const std::vector< const Array * > &p_arrays, glm::ivec2 patch_base_shape, float overlap, std::uint32_t 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.
Definition quilting.cpp:214
Array quilting_expand(const Array &array, float expansion_ratio, glm::ivec2 patch_base_shape, float overlap, std::uint32_t 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.
Definition quilting.cpp:249
Array quilting(const std::vector< const Array * > &p_arrays, glm::ivec2 patch_base_shape, glm::ivec2 tiling, float overlap, std::uint32_t 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.
Definition quilting.cpp:20
Array quilting_shuffle(const Array &array, glm::ivec2 patch_base_shape, float overlap, std::uint32_t 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.
Definition quilting.cpp:351
Array non_parametric_sampling(const Array &array, glm::ivec2 patch_shape, std::uint32_t seed, float error_threshold=0.1f)
Synthesize a new heightmap based on an input array using a non-parametric sampling method.
Definition non_parameteric_sampling.cpp:49