# 边缘增强

边缘增强是一种图像处理技术，它通常通过放大信号的高频分量或向图像中添加锐化层，来增大数字图像中物体边界处的对比度。其用途是使边缘细节更易于检测，无论下游观察者是用肉眼检查医学扫描片的人，还是定位特征的计算机视觉算法。

| 关键事实 | 详情 |
|---|---|
| 核心操作 | 将缩放后的高通图像（原图减去模糊副本）加回原图<sup>[1](https://homepages.inf.ed.ac.uk/rbf/HIPR2/unsharp.htm)</sup> |
| 典型强度 | 缩放常数 k 在 0.2 到 0.7 之间，取值越大锐化越强<sup>[1](https://homepages.inf.ed.ac.uk/rbf/HIPR2/unsharp.htm)</sup> |
| 半径指导 | 锐化半径 \( R_{\mathrm{S}} \lesssim 3 \)；更大的半径会产生粗光晕和周期性 MTF 突起<sup>[2](https://www.imatest.com/support/docs/pre-5-2/sharpening/)</sup> |
| 主要伪影 | 噪声放大、光晕（过冲/下冲）以及锐利边缘附近的振铃<sup>[3](https://doi.org/10.1109/83.826787)</sup> |
| 经典医学应用 | 商用 CT 设备上的数字非锐化掩蔽，1980 年报道于《放射学》<sup>[4](https://doi.org/10.1148/radiology.135.1.7360972)</sup> |
| 近期进展 | 整流流增强（FlowIE，CVPR 2024）的运行速度约为基于扩散的增强的十倍；此后又提出了 IR-Flow 等框架<sup>[5](https://openaccess.thecvf.com/content/CVPR2024/papers/Zhu_FlowIE_Efficient_Image_Enhancement_via_Rectified_Flow_CVPR_2024_paper.pdf)</sup> |

## 工作原理

锐化滤波器有一个共同的数学形式：输出是输入图像加上一个正缩放的高通滤波副本，S(x) = L(x) + α(L ∗ F)(x)，其中 F 是高通滤波器，α 控制强度。<sup>[6](https://cris.fbk.eu/retrieve/5e630c03-03e3-4d18-9254-6ebc6f86c26b/paperLeccaGottardiLecca_compressed.pdf)</sup> 在非锐化掩蔽中，高通图像由原图减去高斯模糊副本得到<sup>[7](https://www.cs.ubc.ca/labs/imager/tr/2012/Countershading/EG.2012-Countershading.pdf)</sup>：

\[ Y' = Y + \lambda H_{\sigma}(Y) = (1+\lambda)Y - \lambda (g_{\sigma} * Y) \]

其中 λ 是增强对比度，\( g_{\sigma} \) 是宽度为 σ 的高斯核。由于模糊图像主要携带低频成分，差值便分离出边缘和精细细节；将其加回即放大了边界对比度。对于锐化量 λ，完整的非锐化掩蔽操作可以写成与一个核的卷积，该核等于 (1 + λ) 乘以单位冲激减去 λ 乘以模糊核<sup>[8](https://www.cs.unc.edu/~ronisen/teaching/spring_2023/web_materials/lecture6_image_proc_2.pdf)</sup>；根据[卷积定理](https://www.edgepedia.org/zh/convolution-theorem)，空间卷积等价于频域中的乘法，因此该滤波器也可以在傅里叶空间中作为高频放大来应用。<sup>[8](https://www.cs.unc.edu/~ronisen/teaching/spring_2023/web_materials/lecture6_image_proc_2.pdf)</sup><sup> • </sup><sup>[25](https://www.nv5geospatialsoftware.com/docs/unsharp_mask.html)</sup>

一种常见的实现方式是用拉普拉斯算子 \( \nabla^{2} f = \partial^{2} f/\partial x^{2} + \partial^{2} f/\partial y^{2} \) 替代显式的模糊减除，其负值充当全向高通滤波器。<sup>[1](https://homepages.inf.ed.ac.uk/rbf/HIPR2/unsharp.htm)</sup><sup> • </sup><sup>[9](https://www.cse.unr.edu/~bebis/CS791E/Notes/EdgeDetection.pdf)</sup> 高斯-拉普拉斯（LoG）大致由两个不同 σ 的高斯之差近似<sup>[10](https://people.ciirc.cvut.cz/~hlavac/TeachPresEn/11ImageProc/22EdgesInImagesEn.pdf)</sup>，它在微分之前先做平滑，因此对噪声更稳健。<sup>[1](https://homepages.inf.ed.ac.uk/rbf/HIPR2/unsharp.htm)</sup>

## 实现方法

实践者通常遵循以下步骤：

1. **先平滑。** 微分掩模作为高通滤波器会放大噪声，因此当噪声是问题时，在基于导数的锐化或[边缘检测](https://www.edgepedia.org/zh/edge-detection)之前用低通滤波器平滑可能是有用的，而 LoG 滤波器内置了这种平滑；普通非锐化掩蔽通过减去模糊副本形成其高通掩模，不需要对输入进行预先平滑。<sup>[9](https://www.cse.unr.edu/~bebis/CS791E/Notes/EdgeDetection.pdf)</sup>
2. **选择核或半径。** 模糊宽度决定了增强的空间尺度：窄的高通滤波器提高表观锐度，而宽的高通滤波器提高边缘邻近区域的对比度。<sup>[7](https://www.cs.ubc.ca/labs/imager/tr/2012/Countershading/EG.2012-Countershading.pdf)</sup> 图像质量测试建议使用较小的锐化半径。<sup>[2](https://www.imatest.com/support/docs/pre-5-2/sharpening/)</sup>
3. **应用滤波器并设置强度。** 对于简单的两像素锐化模型，\( L_{\mathrm{sharp}}(x) = \frac{L(x) - 0.5 k_{\mathrm{sharp}}(L(x-V) + L(x+V))}{1 - k_{\mathrm{sharp}}} \)，其中 V 是以像素为单位的偏移量<sup>[2](https://www.imatest.com/support/docs/pre-5-2/sharpening/)</sup>；对于经典非锐化掩蔽，k 在 0.2 到 0.7 之间是合理范围。<sup>[1](https://homepages.inf.ed.ac.uk/rbf/HIPR2/unsharp.htm)</sup>
4. **检查削波和伪影。** 超过约 30% 的过度锐化会使放大图像中边缘附近的光晕变得可见，而且锐化在提升 MTF50 的同时也会放大噪声。<sup>[2](https://www.imatest.com/support/docs/pre-5-2/sharpening/)</sup>

## 起源

该技术早于数字计算。非锐化掩蔽源自胶片摄影，当时通过将负片略微失焦曝光制成幻灯片掩模，再与透明正片叠合来锐化边缘。<sup>[2](https://www.imatest.com/support/docs/pre-5-2/sharpening/)</sup>

在数字时代，J. Winter 于 1980 年在《[放射学](https://www.edgepedia.org/zh/radiology)》上报道，无需软件开发费用，即可在现有商用计算机断层扫描设备上通过“数字非锐化掩蔽”生成边缘增强图像，从而能够显示密度范围极宽的解剖区域，同时使边缘细节更加明显。<sup>[4](https://doi.org/10.1148/radiology.135.1.7360972)</sup> 后来有两种方法重塑了该领域处理噪声与边缘的思路：P. Perona 和 J. Malik 于 1990 年在《IEEE 模式分析与机器智能汇刊》上提出的各向异性扩散<sup>[11](https://doi.org/10.1109/34.56205)</sup>，以及 John Canny 于 1986 年在同一期刊上发表的 [Canny 边缘检测器](https://www.edgepedia.org/zh/canny-edge-detector)。<sup>[12](https://doi.org/10.1109/tpami.1986.4767851)</sup>

## 变体

**线性与自适应非锐化掩蔽。** A. Polesel、G. Ramponi 和 V.J. Mathews 于 2000 年在《IEEE 图像处理汇刊》上引入了自适应非锐化掩蔽，使用两个方向滤波器和 Gauss–Newton 系数自适应；它更强调中等对比度的细节而非大对比度细节，并且在平滑区域不进行锐化。<sup>[3](https://doi.org/10.1109/83.826787)</sup> 一种约束版本将非锐化掩蔽与 Jong-Sen Lee（1983）的 sigma 滤波器结合，以适合移动实现的低计算复杂度实现联合去噪与锐化。<sup>[13](https://doi.org/10.1016/0734-189x%2883%2990047-6)</sup><sup> • </sup><sup>[14](https://dl.acm.org/doi/10.1007/978-3-540-69905-7_2)</sup> 一种基于各向异性扩散的变体用改进的各向异性扩散滤波器替代低通高斯，减弱过冲伪影。<sup>[15](https://www.jscdss.com/index.php/files/article/view/214)</sup>

**导数掩模。** 3×3（对 Roberts 而言为 2×2）的导数掩模，包括 Roberts、Prewitt、Sobel 和 Kirsch 算子，用于边缘检测和锐化；Sobel 掩模对中心行或列的加权是外侧行的两倍。<sup>[10](https://people.ciirc.cvut.cz/~hlavac/TeachPresEn/11ImageProc/22EdgesInImagesEn.pdf)</sup><sup> • </sup><sup>[16](https://courses.cs.washington.edu/courses/cse576/book/ch5.pdf)</sup>

**边缘感知滤波器。** [何恺明](https://www.edgepedia.org/zh/kaiming-he)、孙剑和汤晓鸥（2012）的[引导滤波](https://www.edgepedia.org/zh/guided-filter)在窗口内将输出计算为局部线性模型，保持边缘，避免双边滤波的梯度反转伪影，并且运行时间为 O(N)，与核大小无关。<sup>[17](https://doi.org/10.1109/tpami.2012.213)</sup> Buyue Zhang 和 J.P. Allebach（2008）的自适应双边滤波以同时去噪为目标进行锐度增强。<sup>[18](https://doi.org/10.1109/tip.2008.919949)</sup> Sylvain Paris、Samuel W. Hasinoff 和 [Jan Kautz](https://www.edgepedia.org/zh/jan-kautz)（2015）描述的局部拉普拉斯滤波器用幂曲线（α < 1 时锐化）重新映射拉普拉斯金字塔系数，无需优化即可产生无光晕的细节放大。<sup>[19](https://doi.org/10.1145/2723694)</sup>

## 应用

非锐化滤波常用于摄影和印刷行业以使边缘清晰<sup>[1](https://homepages.inf.ed.ac.uk/rbf/HIPR2/unsharp.htm)</sup>，而结合高提升滤波器的非锐化掩蔽广泛用于印刷和出版。<sup>[20](https://pmc.ncbi.nlm.nih.gov/articles/PMC4182077/)</sup> 拉普拉斯和非锐化掩蔽等局部空间滤波器内置于许多相机和显示器中，并作为锐化工具出现在照片和视频编辑器中，因为它们能以低计算成本实现快速边缘增强<sup>[6](https://cris.fbk.eu/retrieve/5e630c03-03e3-4d18-9254-6ebc6f86c26b/paperLeccaGottardiLecca_compressed.pdf)</sup>；大多数相机执行简单锐化而非 USM，因为 USM 需要多得多的处理能力。<sup>[2](https://www.imatest.com/support/docs/pre-5-2/sharpening/)</sup> 在医学成像中，数字非锐化掩蔽已应用于计算机断层图像<sup>[4](https://doi.org/10.1148/radiology.135.1.7360972)</sup>，锐化算法在 MRI 切片上被评估。<sup>[21](https://pmc.ncbi.nlm.nih.gov/articles/PMC9485367/)</sup> 增强还作为基于特征的视觉的预处理：当增强先于 SIFT 和 ORB 等对噪声敏感的算法时，其噪声行为很重要。<sup>[22](https://opg.optica.org/josaa/abstract.cfm?uri=josaa-39-4-610)</sup>

扩散模型和学习模型现在与边缘增强双向互动。在速度方面，FlowIE 使用条件整流流拉直采样轨迹，将推理时间缩短至基于扩散的增强所需时间的约十分之一。<sup>[5](https://openaccess.thecvf.com/content/CVPR2024/papers/Zhu_FlowIE_Efficient_Image_Enhancement_via_Rectified_Flow_CVPR_2024_paper.pdf)</sup> 形式为 \( \widehat{Y} = f_{\mathrm{sharpen}}(f_{\mathrm{denoise}}(X) + X) \) 的统一先去噪后锐化网络学习高频残差，同时抑制非锐化掩蔽中常见的光晕伪影。<sup>[23](https://link.springer.com/article/10.1007/s00521-026-12015-0)</sup>

## 局限与替代方案

主要的失效模式直接源于其机制。由于[高斯模糊](https://www.edgepedia.org/zh/gaussian-blur)逐步抑制更高空间频率而非施加硬性的特征尺寸截止，噪声和小特征在高通图像中仍保持可观的对比度，因此非锐化掩蔽过度放大了小特征的对比度，尤其是噪声。<sup>[7](https://www.cs.ubc.ca/labs/imager/tr/2012/Countershading/EG.2012-Countershading.pdf)</sup> 线性非锐化掩蔽对噪声极其敏感，并且对高对比度区域的增强远大于平坦区域，产生过度过冲<sup>[3](https://doi.org/10.1109/83.826787)</sup>；当阈值过低时，噪声被不可控地放大，过度增强的边缘对比度导致光晕和过冲伪影。<sup>[21](https://pmc.ncbi.nlm.nih.gov/articles/PMC9485367/)</sup> 光晕在感知上具有重要影响：反荫蔽轮廓的感知遵循 U 形特性，某些宽度轮廓即使仅轻微可见也被判定为不可接受。<sup>[7](https://www.cs.ubc.ca/labs/imager/tr/2012/Countershading/EG.2012-Countershading.pdf)</sup>

**与替代方案的比较。** 边缘检测提取边界位置而非放大边缘对比度，使用一阶算子（Sobel、Prewitt、Roberts）、二阶算子（Laplace、LoG）以及多阶段、基于梯度的 Canny 检测器。<sup>[24](https://www.frontiersin.org/journals/signal-processing/articles/10.3389/frsip.2022.826967/full)</sup> 基于深度学习的增强器在公开测试数据上通常比传统方法产生更少噪声的图像。<sup>[22](https://opg.optica.org/josaa/abstract.cfm?uri=josaa-39-4-610)</sup>

## References

1. [Spatial Filters - Unsharp Filter (HIPR2, Fisher, Perkins, Walker & Wolfart)](https://homepages.inf.ed.ac.uk/rbf/HIPR2/unsharp.htm)
2. [Sharpening | Imatest](https://www.imatest.com/support/docs/pre-5-2/sharpening/)
3. [A. Polesel, G. Ramponi, V.J. Mathews (2000). Image enhancement via adaptive unsharp masking. IEEE Transactions on Image Processing.](https://doi.org/10.1109/83.826787)
4. [J Winter (1980). Edge enhancement of computed tomograms by digital unsharp masking.. Radiology.](https://doi.org/10.1148/radiology.135.1.7360972)
5. [FlowIE: Efficient Image Enhancement via Rectified Flow (CVPR 2024)](https://openaccess.thecvf.com/content/CVPR2024/papers/Zhu_FlowIE_Efficient_Image_Enhancement_via_Rectified_Flow_CVPR_2024_paper.pdf)
6. [A New Image Sharpening Filter Based on Gradient and Retinex-Inspired Contrast (Lecca, Gottardi & Lecca, FBK)](https://cris.fbk.eu/retrieve/5e630c03-03e3-4d18-9254-6ebc6f86c26b/paperLeccaGottardiLecca_compressed.pdf)
7. [Unsharp Masking, Countershading and Halos: Enhancements or Artifacts? (Trentacoste et al., Eurographics 2012)](https://www.cs.ubc.ca/labs/imager/tr/2012/Countershading/EG.2012-Countershading.pdf)
8. [Lecture 6: Image Processing (UNC)](https://www.cs.unc.edu/~ronisen/teaching/spring_2023/web_materials/lecture6_image_proc_2.pdf)
9. [Edge Detection notes (Bebis, University of Nevada Reno)](https://www.cse.unr.edu/~bebis/CS791E/Notes/EdgeDetection.pdf)
10. [Edges in Images (Hlaváč lecture slides, CTU Prague)](https://people.ciirc.cvut.cz/~hlavac/TeachPresEn/11ImageProc/22EdgesInImagesEn.pdf)
11. [P. Perona, J. Malik (1990). Scale-space and edge detection using anisotropic diffusion. IEEE Transactions on Pattern Analysis and Machine Intelligence.](https://doi.org/10.1109/34.56205)
12. [John Canny (1986). A Computational Approach to Edge Detection. IEEE Transactions on Pattern Analysis and Machine Intelligence.](https://doi.org/10.1109/tpami.1986.4767851)
13. [Digital image smoothing and the sigma filter (Computer Vision Graphics and Image Processing, 1983)](https://doi.org/10.1016/0734-189x%2883%2990047-6)
14. [Constrained Unsharp Masking for Image Enhancement (Bilcu & Vehvilainen, ICISP 2008)](https://dl.acm.org/doi/10.1007/978-3-540-69905-7_2)
15. [Anisotropic Diffusion-Based Unsharp Masking for Sharpness Improvement in Digital Images (Al-Ameen et al.)](https://www.jscdss.com/index.php/files/article/view/214)
16. [Image Enhancement chapter (CSE 576 textbook, University of Washington)](https://courses.cs.washington.edu/courses/cse576/book/ch5.pdf)
17. [Kaiming He, Jian Sun, Xiaoou Tang (2012). Guided Image Filtering. IEEE Transactions on Pattern Analysis and Machine Intelligence.](https://doi.org/10.1109/tpami.2012.213)
18. [Buyue Zhang, J.P. Allebach (2008). Adaptive Bilateral Filter for Sharpness Enhancement and Noise Removal. IEEE Transactions on Image Processing.](https://doi.org/10.1109/tip.2008.919949)
19. [Sylvain Paris, Samuel W. Hasinoff, Jan Kautz (2015). Local Laplacian filters. Communications of the ACM.](https://doi.org/10.1145/2723694)
20. [A Three-Step Approach with Adaptive Additive Magnitude Selection for the Sharpening of Images](https://pmc.ncbi.nlm.nih.gov/articles/PMC4182077/)
21. [A Noise-robust and Overshoot-free Alternative to Unsharp Masking for Enhancing the Acuity of MR Images](https://pmc.ncbi.nlm.nih.gov/articles/PMC9485367/)
22. [Performance comparison of image enhancers with and without deep learning (Lecca & Poiesi, JOSA A 39(4):610, 2022)](https://opg.optica.org/josaa/abstract.cfm?uri=josaa-39-4-610)
23. [A unified deep learning framework for image denoising and sharpening: from sequential to end-to-end models (Neural Computing and Applications, 2026)](https://link.springer.com/article/10.1007/s00521-026-12015-0)
24. [Survey of Image Edge Detection (Frontiers in Signal Processing, 2022)](https://www.frontiersin.org/journals/signal-processing/articles/10.3389/frsip.2022.826967/full)
25. [UNSHARP_MASK](https://www.nv5geospatialsoftware.com/docs/unsharp_mask.html)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Sep 30, 2026 · Last review: Sep 30, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Language and vision AI › Computer vision › Vision methods and geometry › Low-level image analysis

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/edge-enhancement

English original: https://www.edgepedia.org/edge-enhancement
