-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Skimage.graph: knight's move neighbourhood #7577
Comments
Thanks for the suggestion. At a first glance this sounds good but I'm unclear on the details.
|
Hello, |
That said, we already have a convention for functions to specify a more complex arbitrary footprint: a Do you have a concrete small example using scikit-image, where we could evaluate the effects of such a change? That would probably be very useful. |
Hello,
|
Description:
Currently, the skimage.graph module operates on immediate adjacency neighbourhood, i.e. the graph connects pixels that touch each other. However, for cost surface calculation, this may introduce artefacts (image below). A possible solution is to extend the neighbourhood to the distance of two pixels, a.k.a. the "knight's move":
Octagonal shaped cost surface artefacts (lines correspond to isochrones):
The images are from https://grass.osgeo.org/grass83/manuals/r.cost.html (GRASS).
Implementing this feature would improve the usability of the module for spatial analysis, which has a very large community of potential users (ecology, geography, urban planning, etc.).
The text was updated successfully, but these errors were encountered: