Refactor: More accurate highway map

This commit is contained in:
NichiHachi
2024-06-13 03:51:25 +02:00
parent 192c1a9c63
commit 528c0a2a30
9 changed files with 32 additions and 23 deletions

View File

@@ -3,8 +3,7 @@ from PIL import Image
from data_analysis import get_data, highway_map, filter_sobel, skeleton_highway_map
if __name__ == '__main__':
#world = World.World()
#heightmap, watermap, treemap = get_data(world)
world = World.World()
heightmap, watermap, treemap = get_data(world)
filter_sobel("./data/heightmap.png").save('./data/sobelmap.png')
highway_map()
skeleton_highway_map(Image.open('./data/highwaymap.png'))
skeleton_highway_map(highway_map())