I need some help in implementing a distance map in Python.
I have a binary Maze (1=walls, 0=free space) in numpy format in which I would like to implement a distance map which is outgoing from a certain point in the Maze. The distance maps shall not pass through walls.
The Maze that I have looks like this, whereby the distance map should be outgoing from the blue area. The binary map that I have
I think distance map should be evolving outgoing from the blue area and give every voxel in the maze a value which represents the shortest distance. To give you an idea, I think the distace map should be evolving in this way
Does anybody have an idea on how to implement this or maybe even code examples?
Thanks for every help!
I uploaded the numpy in the following WeTransfer link https://wetransfer.com/downloads/63800d0f06667fa7644a4a5d1a68fc5a20200121121741/744d2c
The starting point I use is (56,104)