|
| void | hmap::find_vertical_cut_path (const Array &error, std::vector< int > &path_i) |
| | Find the vertical cut path with the minimum cost using dynamic programming.
|
| Array | hmap::generate_mask (glm::ivec2 shape, std::vector< int > cut_path_i, int ir) |
| | Generate a smooth mask based on a cut path.
|
| void | hmap::helper_flip_rot_transpose (Array &array, bool do_flip, int rot_steps, bool do_transpose) |
| Array | hmap::get_random_patch (const Array &array, glm::ivec2 patch_shape, std::mt19937 &gen, bool patch_flip=false, bool patch_rotate=false, bool patch_transpose=false, std::vector< Array * > *p_secondary_arrays=nullptr, std::vector< Array > *p_secondary_patches=nullptr) |
| | Extracts a random sub-array (patch) from the input array, with optional transformations.
|