Bilateral Filters

本文介绍了双边滤波技术,一种结合了像素位置和亮度的非线性滤波方法,用于图像平滑同时保持边缘。通过两个高斯滤波器在空间域和亮度域工作,该技术在保持图像细节的同时有效减少了噪声。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Bilateral Filters


Bilateral filtering is a non-linear filtering technique introduced by Tomasi et al. [1]. It extends the concept of Gaussian smoothing by weighting the filter coefficients with their corresponding relative pixel intensities. Pixels that are very different in intensity from the central pixel are weighted less even though they may be in close proximity to the central pixel. This is effectively a convolution with a non-linear Gaussian filter, with weights based on pixel intensities. This is applied as two Gaussian filters at a localized pixel neighborhood , one in the spatial domain, named thedomain filter, and one in the intensity domain, named the range filter. A very intuitive mathematical approach is given in [5] as follows.


Let f: Re→Re be the original brightness function of an image which maps the coordinates of a pixel (x, y) to a value in light intensity. Then for any given pixela at (x,y) within a neighborhood of size n, which has a0 as its centre, its coefficient assigned by the range filterr(a) is determined by the following function:

Similarly, its coefficient assigned by the domain filter g(a) is determined by the closeness function below:


where t is the scale parameter.
For the central pixel of the neighborhood a0 , its new value, denoted by h(a0)

k is the normalization constant to maintain zero-gain and is defined as follows


Pixels close to the central pixel a0 in both space and intensity contribute more than those further away in space and intensity. This is represented graphically in Fig 8 (obtained from [7]) .

Fig 8: Bilateral filtering.

Both sigma_d and sigma_r determine the level of smoothness. setting sigma_r to zero reduces the bilateral filter to a simple Gaussian smoothing filter.

Use for Image Scaling.

We apply the bilateral filter above to our original image before the laplacian edge detection to smooth out the noise while maintaining edges. We can then enhance the edges without amplifying noise. Fig 9 shows the application of the bilateral filter on same noisy image of Lena from the previous section . Comparing the performance with vs. without bilateral filtering, the improvement both in noise reduction and edge-preservation should be apparent.

Fig 9: Bilateral Filtering for noiseless edge preservation.


It is interesting to note that we explored application of the same bilateral filter after scaling (adjusted corrected for new domain scale) rather than before as shown in Fig 10. The results were very comparable (Fig. 9). It is computationally cheaper hence preferable to perform the bilateral filtering prior to scaling.

Fig 10: Comparison between bilateral before and after scaling and the difference between them.

 

 

 

参照国外的介绍:http://scien.stanford.edu/pages/labsite/2006/psych221/projects/06/imagescaling/bilati.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值