【CV笔记】CV笔记1:图像处理基础-滤波器

本文介绍了图像处理中的滤波器概念,包括线性滤波、卷积和高斯核函数。讨论了高斯滤波器在平滑图像和去除高频部分的作用,对比了均值滤波、高斯滤波和中值滤波。接着,讲解了边缘检测的重要性,分析了高斯滤波在减少噪声中的应用,以及Sobel、Laplacian of Gaussian(LoG)和Canny边缘检测算子的工作原理和优缺点。

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

Reference

Computer Vision: Algorithms and Applications (2nd Edition), Richard Szeliski

Chapter 3.1, 3.2

 

Filters (滤波器)

Image filtering

modify the pixels in an image based on some function of a local neighborhood of each pixel.

Linear filtering

Replace each pixel by a linear combination (a weighted sum) of its neighbors. (cross-correlation, convolution)

the prescription for the linear combination is called the "kernel"

cross-correlation (滑动点积、互相关)

8a388610895747008e4c561980643b7b.png

  • can think of the dot product between local neighborhood and kernel for each pixel

convolution (卷积)

2f2e52c0fa2e4928b7c6a9ba26b7d4ad.png

  • same as cross-correlation, except the kernel is "flipped" (horizontally and vertically)
  • convolution is commutative and associative (可交换,可结合)

 Gaussian kernel (高斯核函数)

gif.latex?G%28x%2C%20y%29%20%3D%20%5Cfrac%7B1%7D%7B2%5Cpi%5Csigma%5E2%7D%5Cexp%28-%5Cfrac%7Bx%5E2+y%5E2%7D%7B2%5Csigma%5E2%7D%29

  • 高斯滤波(平滑),即用某一尺寸的二维高斯核与图像进行卷积。前面的常数是做归一化处理。(can be ignored, as we should re-normalize weights to sum to 1 in any case)
  • 高斯核是对连续高斯函数的离散近似,通常对高斯曲面进行离散采样和归一化得出,这里,归一化指的是卷积核所有元素之和为1。
  • 去掉图像的高频部分(低通滤波)
  • 均值滤波 vs. 高斯滤波 vs. 中值滤波:均值滤波是线性滤波,会将图像中的边缘信息以及特征信息“模糊”掉,会丢失很多特征。均值滤波用中心像素周围的八个像素的均值替换掉原来中心像素的值。中值
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值