![](https://www.mathworks.com/matlabcentral/images/broken_image.png)
How to draw correct path for this image
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
saravanakumar D
el 7 de En. de 2014
Comentada: Image Analyst
el 15 de En. de 2014
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/154757/image.png)
Above is my input(model) file. Left starting corner is starting point and right end is finishing. So i want to draw correct path from start to end. So anyone help me to get the output file like below
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/154759/image.png)
0 comentarios
Respuesta aceptada
Image Analyst
el 7 de En. de 2014
This is what my maze solving program does. Go to my File Exchange to get it: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
![](https://www.mathworks.com/matlabcentral/images/broken_image.png)
4 comentarios
Image Analyst
el 15 de En. de 2014
Well you can make it one by cropping and extending. Anyway, why don't you use bwdistgeodesic like Alex and Steve show you?
Más respuestas (1)
Alex Taylor
el 15 de En. de 2014
The Image Processing Toolbox functions bwdistgeodesic and graydist can be used to solve this problem. This is explored in the following blog post:
That Image Analyst already provided.
0 comentarios
Ver también
Categorías
Más información sobre Labyrinth problems en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!