maze_solution

版本 1.0.0.0 (184.6 KB) 作者: Image Analyst
Solves mazes using mathematical morphology - find the route through the maze.
7.6K 次下载
更新时间 2010/4/6

查看许可证

编者注: This file was selected as MATLAB Central Pick of the Week

This demo works for "perfect mazes." A perfect maze is defined as a maze which has one and only one path from any point in the maze to any other point. This means that the maze has no inaccessible sections, no circular paths, and no open areas. A perfect maze should have only 2 walls (I believe). No searching or optimization methods (such as A* or dynamic programming) are used - only morphology and standard image processing methods. Only tested for 8 bit integer color and monochrome images.

Demo mazes are included, but you can specify your own maze image. Maze images should have dark walls on a light background. Maze may be surrounded by white, or go right out to the edge of the image and have the outer wall be the outer boundary of the image. The maze image should not include text or pictures, like arrows, animals, etc. -- it should include the maze walls only.

引用格式

Image Analyst (2024). maze_solution (https://www.mathworks.com/matlabcentral/fileexchange/27175-maze_solution), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2010a
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!

Maze_Solution/

版本 已发布 发行说明
1.0.0.0