HighMap library (C++)
Loading...
Searching...
No Matches
depression_filling.hpp
Go to the documentation of this file.
1/* Copyright (c) 2023 Otto Link. Distributed under the terms of the GNU General
2 Public License. The full license is in the file LICENSE, distributed with
3 this software. */
4#pragma once
5
6#include "highmap/array.hpp"
9
10namespace hmap
11{
12
13class ICommunicator;
14
39 int iterations = 1000,
40 float epsilon = 1e-4f,
41 bool outflow_left = true,
42 bool outflow_right = true,
43 bool outflow_bottom = true,
44 bool outflow_top = true,
45 const UvTile &region = UvTile::dummy(),
47
61 Array &z,
62 bool apply_post_filter = false,
63 bool outflow_left = true,
64 bool outflow_right = true,
65 bool outflow_bottom = true,
66 bool outflow_top = true,
67 const UvTile &region = UvTile::dummy(),
69
70} // namespace hmap
Declaration of the Array class for 2D floating-point arrays with various mathematical operations and ...
Array class, helper to manipulate 2D float array with "(i, j)" indexing.
Definition array.hpp:31
Abstract communicator interface providing MPI-style collective directives for single-source SPMD Arra...
Definition communicator_interface.hpp:60
static SingleArrayComm & instance()
Definition communicator.cpp:78
Definition opencv.hpp:20
void depression_filling(Array &z, int iterations=1000, float epsilon=1e-4f, bool outflow_left=true, bool outflow_right=true, bool outflow_bottom=true, bool outflow_top=true, const UvTile &region=UvTile::dummy(), ICommunicator &comm=SingleArrayComm::instance())
Fill the depressions of the heightmap using the Planchon-Darboux algorithm.
Definition depression_filling.cpp:19
void depression_filling_priority_flood(Array &z, bool apply_post_filter=false, bool outflow_left=true, bool outflow_right=true, bool outflow_bottom=true, bool outflow_top=true, const UvTile &region=UvTile::dummy(), ICommunicator &comm=SingleArrayComm::instance())
Fill depressions in a heightmap using the Priority-Flood algorithm.
Definition depression_filling_priority_flood.cpp:23
Describes an Array tile's position within the normalized [0, 1]^2 UV domain and global index grid.
Definition uv_tile.hpp:46
static const UvTile & dummy()
Definition uv_tile.cpp:37
Normalized UV-domain tile descriptor for single-source SPMD Array algorithms and VirtualArray dispatc...