Question

I want to route through an array with skimage.graph.route_through_array. I have one start point and multiple destination points. I am wondering if it is possible to insert the multiple destinations into the function. I know I could also loop over the function, but I am looking for something faster.

Was it helpful?

Solution

From the documentation you link to, it appears that end needs the same dimensions as start, which is also the same as the ndarray. So, no, using that function you can't do what you want. You could wrap that function in your own that, as you suggest, loops through the various endpoints.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top