|
bool | hmap::cmp_path (std::pair< float, std::vector< int > > &a, std::pair< float, std::vector< int > > &b) |
|
void | hmap::find_vertical_cut_path (const Array &error, std::vector< int > &path_i) |
| Find the vertical cut path with the minimum cost using Dijkstra's algorithm.
|
|
Array | hmap::generate_mask (hmap::Vec2< int > 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_ud, bool do_flip_lr, bool do_rot90, bool do_transpose) |
|
Array | hmap::get_random_patch (const Array &array, hmap::Vec2< int > 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.
|
|