Added data analysis (WORK IN PROGRESS)
This commit is contained in:
@@ -1,17 +1,10 @@
|
||||
import World
|
||||
|
||||
|
||||
def get_data(world: World):
|
||||
heightmap, watermap, treemap = world.getData()
|
||||
heightmap.save('./data/heightmap.png')
|
||||
watermap.save('./data/watermap.png')
|
||||
treemap.save('./data/treemap.png')
|
||||
|
||||
|
||||
def main():
|
||||
world = World.World()
|
||||
get_data(world)
|
||||
|
||||
from PIL import Image
|
||||
from data_analysis import get_data, highway_map, filter_sobel, skeletonnize_map
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
#world = World.World()
|
||||
#heightmap, watermap, treemap = get_data(world)
|
||||
#filter_sobel("./data/heightmap.png").save('./data/sobelmap.png')
|
||||
highway_map()
|
||||
skeletonnize_map(Image.open('./data/highwaymap.png'))
|
||||
|
||||
Reference in New Issue
Block a user