Create a helper function for basin recognition
authorLukas Jiriste <ljiriste@student.42prague.com>
Thu, 12 Sep 2024 23:56:03 +0000 (01:56 +0200)
committerLukas Jiriste <ljiriste@student.42prague.com>
Fri, 13 Sep 2024 08:22:51 +0000 (10:22 +0200)
commit83678252b1af3a208de6fab1f55512524cf49244
tree1694c2ed2ebedea108bad4010ad50c56e2bbdf98
Create a helper function for basin recognition

This function accepts an array representing the height map of an area
and accumulates pixel count through steepest path downward.
This is a naive implementation that takes quite some time to complete
for larger maps.
povodi.py [new file with mode: 0644]