https://123dok.net/document/qvl6wvvl-signal-processing-topographic-distance-and-watershed-lines.html