TopoToolbox / libtopotoolbox

A C library for the analysis of digital elevation models.
https://topotoolbox.github.io/libtopotoolbox/
GNU General Public License v3.0
0 stars 3 forks source link

Initialize all pixels on the boundary in fillsinks #22

Closed wkearn closed 3 months ago

wkearn commented 3 months ago

By using && in this conditional, this only initialized the output/marker with pixels in the corners when we needed to initialize all the boundary pixels. Switching the && to || ensures that all of the boundary pixels are set equal to their value in the inverted DEM before the reconstruction algorithm is run.