通过周围像素的平均值去除图像中的孔 [英] remove the holes in an image by average values of surrounding pixels

查看:117
本文介绍了通过周围像素的平均值去除图像中的孔的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何一个请帮助我填充这些黑洞从相邻的非零像素取值。
感谢

can any one please help me in filling these black holes by values taken from neighboring non-zero pixels. thanks

推荐答案

Matlab文件交换中有一个文件 - inpaint_nans ,这完全是你想要的。作者解释了为什么以及在哪些情况下比Delaunay三角测量更好。

There is a file on Matlab file exchange, - inpaint_nans that does exactly what you want. The author explains why and in which cases it is better than Delaunay triangulation.

这篇关于通过周围像素的平均值去除图像中的孔的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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