在“洪水填充"中获取填充点? [英] Getting the filled points in Flood Fill ?

查看:71
本文介绍了在“洪水填充"中获取填充点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿:)
我在代码项目中找到了一篇非常有用的文章,称为Flood Fill,这是链接

[^ ]
好的,您可能知道,该项目使您可以选择图片上的一个点,并用一种​​颜色填充该点.我真的在尝试找到一种方法来获取算法中颜色填充的图片上的点的列表.
谢谢.

hey :)
I found a very useful article on code project called Flood Fill , here is the link

[^]
Ok so, as you might know this project lets you choose a point on a picture and fills it with a colour. I am really trying to find out a way to get a list of the points on the picture that the algorithm has filled with colour.
Thank You.

推荐答案

我建​​议您在此页面上与本文的作者联系:
我必须补充一点,这个问题不是100%明确的.您真的需要一个列表,而不是其他指定点集的方法吗?您是否知道此列表对于保留所有这些点可能太长了?我想基本的答案将是:修改算法(我宁愿自己使用原始源代码来做),但是您要求拥有列表几乎是不合理的.我建议您在问问题之前先考虑一下.

—SA
I would advise you to contact the author of this article on this page: Queue-Linear Flood Fill: A Fast Flood Fill Algorithm[^]. At the end of the article text, use "New Message". The author will receive a e-mail notification and will get a chance to answer you.

I must add that the question is not 100% clear. Do your really need a list, not any other way to specify the set of points? Do you realize that this list can be way too long to keep all those points? I guess the basic answer will be: modify the algorithm (I would rather do it by myself using the original source code), but your requirement to have a list is hardly reasonable. I suggest you think about it before you ask your question.

—SA


这篇关于在“洪水填充"中获取填充点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆