opencv各种滤波分析bilateralFilter、Laplacian、bitwise_and和GaussianBlur

我们首先来看一下bilateralFilter,双边滤波

具体查看:https://en.wikipedia.org/wiki/Bilateral_filter点击打开链接

bilateral filter is a non-linear, edge-preserving and noise-reducing smoothing filter for images. The intensity value at each pixel in an image is replaced by a weighted average of intensity values from nearby pixels. This weight can be based on a Gaussian distribution. Crucially, the weights depend not only on Euclidean distance of pixels, but also on the radiometric differences (e.g. range differences, such as color intensity, depth distance, etc.). This preserves sharp edges by systematically looping through each pixel and adjusting weights to the adjacent pixels accordingly.

也就是说:双边滤波器是一种非线性,边缘保留和减除噪声的图像平滑滤波器。在图像的每个像素强度值处被从附近的像素强度值的加权平均来取代。这个权值可以是基于高斯分布的。关键的是,权重不仅取决于像素的欧几里得距离,而且也在辐射差异(比如,范围的差异,颜色强度,深度距离等)。这个系统地遍历每个像素的过程中保留了锐利的边缘和相应调整相邻的像素的权重。

The bilateral filter is defined as双边滤波器的定义如下:

I^\text{filtered}(x) = \frac{1}{W_p} \sum_{x_i \in \Omega} I(x_i)f_r(\|I(x_i)-I(x)\|)g_s(\|x_i-x\|),

where the normalization term标准化的术语:

W_p = \sum_{x_i \in \Omega}{f_r(\|I(x_i)-I(x)\|)g_s(\|x_i-x\|)}

ensures that the filter preserves image energy and

  • I^\text{filtered}  is the filtered image;过滤后的图像
  • I is the original input image to be filtered;原始输入图像
  • x are the coordinates of the current pixel to be filtered;当前正在过滤的像素的坐标
  •  \Omegais the window centered in x;过滤窗口的中心
  • f_r is the range kernel for smoothing differences in intensities. This function can be a Gaussian function;内核范围平滑强度的差异,这个函数是高斯函数
  • g_s is the spatial kernel for smoothing differences in coordinates. This function can be a Gaussian function;是平滑的内核空间坐标的差异,这个函数也是高斯函数

As mentioned above, the weightW_p  is assigned using the spatial closeness and the intensity difference.[1] Consider a pixel located at (i, j) which needs to be denoised in image using its neighbouring pixels and one of its neighbouring pixels is located at (k, l). Then, the weight assigned for pixel (k, l) to denoise the pixel 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值