得到邻居像素 [英] getting neighbor pixel

查看:82
本文介绍了得到邻居像素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的程序有问题.
我必须从种子像素中检测邻居像素.
并检测邻居可以长大,直到图像上的像素满..
例如:
1.我的种子像素位于(5,5)
2.首先在(4,5),(6,5),(4,4),(5,4),(6,4),(4,6),(5,6),(6, 6)
3.现在检测(3,3)(4,3)(5,3)(6,3)(7,3),(3,4)(3,5)(3,6),... .....
4.更多长大以发现邻居

这个问题怎么算法?
thx.

i have some problem with my program.
i must detect neighbor pixel from seed pixel.
and detect neighbor can grow up until full of pixel on image..
for example :
1. i have seed pixel at (5,5)
2. detect first at (4,5),(6,5), (4,4),(5,4),(6,4), (4,6),(5,6),(6,6)
3. and now detect (3,3)(4,3)(5,3)(6,3)(7,3), (3,4)(3,5)(3,6), ........
4. more grow up to detect neighbor

how algorithm of this problem??
thx.

推荐答案

边缘检测算法 [ ^ ]项目,可能会给您一些想法.
Edge Detection algorithm[^] from here on Code Project, might give you some ideas.


这篇关于得到邻居像素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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