How to draw correct path for this image

1 回表示 (過去 30 日間)
saravanakumar D
saravanakumar D 2014 年 1 月 7 日
コメント済み: Image Analyst 2014 年 1 月 15 日
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

採用された回答

Image Analyst
Image Analyst 2014 年 1 月 7 日
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
  4 件のコメント
saravanakumar D
saravanakumar D 2014 年 1 月 15 日
But it's not have two walls.It's not perfect maze
Image Analyst
Image Analyst 2014 年 1 月 15 日
Well you can make it one by cropping and extending. Anyway, why don't you use bwdistgeodesic like Alex and Steve show you?

サインインしてコメントする。

その他の回答 (1 件)

Alex Taylor
Alex Taylor 2014 年 1 月 15 日
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.

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by