flood fill (scanline)

版本 1.0.0.0 (23.0 KB) 作者: Maxim Vedenyov
Flood fill or paint bucket tool in matlab, like imfill, scanline algoritm, with animation.
2.0K 次下载
更新时间 2010/9/14

查看许可证

http://simulations.narod.ru/
This is flood fill or paint bucket tool in matlab. scanline algoritm used because it fast. Seeds shown as red dots. The function itslef is flood_fill.m
rest files:
zz_flood_fill_test.m - run it to test flood_fill.m
zz_flood_fill_test_movie.m - run it to get animation
zz_flood_fill_movie.m used in animation
explane.png - this picture explane how scanline works
smile.png - used in flood fill test

The idea is fill the object with horizontal lines. during line scan the line set seeds up and down if there is a place (explane.png). In next iteration new scan lines start from seeds. seed accumulated to a stack.

引用格式

Maxim Vedenyov (2024). flood fill (scanline) (https://www.mathworks.com/matlabcentral/fileexchange/28716-flood-fill-scanline), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2009b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Images 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0