# 双三次插值

**双三次插值**（Bicubic interpolation）是一种二维插值方法，其做法是在每个坐标方向上分别应用三次插值，使得在每个矩形单元上，插值曲面都是关于 x 和 y 分别为三次的多项式。在图像处理中，该术语通常指双三次卷积——它由 4×4 的样本邻域按分段三次核加权计算每个输出值，是 MATLAB、OpenCV 和 Photoshop 等软件中的标准重采样选项之一。<sup>[1](https://mathworld.wolfram.com/BicubicInterpolation.html)</sup><sup> • </sup><sup>[2](https://www.researchgate.net/publication/3177062_Cubic_convolution_interpolation_for_digital_image_processing)</sup>

| 关键事实 | 详情 |
|---|---|
| 数学形式 | 在矩形单元上，插值函数为 \( p(x,y) = \sum_{i=0}^{3} \sum_{j=0}^{3} a_{ij} x^{i} y^{j} \)，其中 16 个系数由四个角点处的函数值、一阶偏导数及混合偏导数确定<sup>[1](https://mathworld.wolfram.com/BicubicInterpolation.html)</sup> |
| 图像处理形式 | 双三次卷积读取 4×4 的样本邻域，并用分段三次卷积核对其加权（基斯，1981）<sup>[1](https://mathworld.wolfram.com/BicubicInterpolation.html)</sup> |
| 精度阶数 | 当采样间隔趋于零时，三次卷积法一致收敛，精度介于线性插值与三次样条之间；误差为 \( O(h^{4}) \)，而双线性为 \( O(h^{2}) \)<sup>[2](https://www.researchgate.net/publication/3177062_Cubic_convolution_interpolation_for_digital_image_processing)</sup><sup> • </sup><sup>[3](https://coordinatetransformation.org/core-transformation-fundamentals-standards/interpolation-methods-for-grid-shift-surfaces/bilinear-vs-bicubic-interpolation-for-grid-shifts/)</sup> |
| 邻域 | 每轴 4 个源像素（共 16 个），而双线性每轴 2 个，兰索斯-3 核为 6 个<sup>[4](https://pmc.ncbi.nlm.nih.gov/articles/PMC3898828/)</sup><sup> • </sup><sup>[5](https://rescaleimage.com/resampling-guide)</sup> |
| 主要伪影 | 可能超出采样值的范围，在硬边缘旁产生光晕；过冲出现在数据中任何阶跃的旁边<sup>[1](https://mathworld.wolfram.com/BicubicInterpolation.html)</sup><sup> • </sup><sup>[3](https://coordinatetransformation.org/core-transformation-fundamentals-standards/interpolation-methods-for-grid-shift-surfaces/bilinear-vs-bicubic-interpolation-for-grid-shifts/)</sup> |
| 核参数 | 三次卷积核含有一个自由参数，常取 −1.0 或 −0.5，对结果影响很大<sup>[6](https://library.esri.com/docs/5901.pdf)</sup> |
| 典型用途 | 图像放大、卫星影像几何校正，以及计算机视觉库中的图像变形<sup>[6](https://library.esri.com/docs/5901.pdf)</sup><sup> • </sup><sup>[7](https://www.opencv.org.cn/opencvdoc/2.3.1/opencv2refman.pdf)</sup> |

## 二维插值函数

在矩形网格单元上，双三次插值拟合一个双变量多项式，其项为 \( x^{i} y^{j} \)，i 和 j 从 0 到 3。16 个系数 \( a_{ij} \) 由单元四个角点处的函数值、两个一阶偏导数以及混合偏导数 \( \partial^{2} p / \partial x \, \partial y \) 确定。当这些导数由相邻样本估计时，曲面在单元边界上的值和一阶导数均连续，这正是它与[双线性插值](https://www.edgepedia.org/zh/bilinear-interpolation)的区别所在——后者的导数在每条网格线处都会改变方向。<sup>[1](https://mathworld.wolfram.com/BicubicInterpolation.html)</sup><sup> • </sup><sup>[3](https://coordinatetransformation.org/core-transformation-fundamentals-standards/interpolation-methods-for-grid-shift-surfaces/bilinear-vs-bicubic-interpolation-for-grid-shifts/)</sup>

平滑度的提升伴随着精度阶数的提升。双线性插值假设曲面在每个单元内是平面的，其主导误差项与节点间距的平方乘以曲面曲率成正比；双三次插值假设每个方向上都是三次多项式，其主导误差与间距的四次方成正比。在节点间距较大的光滑曲面上，这一差异很大，在典型间距下可达数百倍。<sup>[3](https://coordinatetransformation.org/core-transformation-fundamentals-standards/interpolation-methods-for-grid-shift-surfaces/bilinear-vs-bicubic-interpolation-for-grid-shifts/)</sup>

## 双三次卷积

在图像处理中，多项式视角通常被卷积形式所取代。每个输出像素是映射位置周围 4×4 邻域内 16 个样本的加权平均，权重来自一个一维分段三次核，可分离地应用——先沿一个轴，再沿另一个轴。可分离性将二维卷积替换为两次一维卷积，计算速度快得多。<sup>[1](https://mathworld.wolfram.com/BicubicInterpolation.html)</sup><sup> • </sup><sup>[8](https://ptacts.uspto.gov/ptacts/public-informations/petitions/1527882/download-documents?artifactId=Vkka6Moppgcd0rSNasF63PiGxnJeCo2lg-KDohL9Y3Yz1jPVdSmTtD4)</sup>

最常用的核由当时在[康菲石油公司](https://www.edgepedia.org/zh/conocophillips)（ConocoPhillips）任职的罗伯特·G·基斯（Robert G. Keys）在《数字图像处理的三次卷积插值》（《IEEE 声学、语音与信号处理汇刊》，第 29 卷，第 1153–1160 页，1981 年）中导出。基斯证明，在适当的边界条件和核约束下，该方法的精度阶数介于线性插值与三次样条之间，且当采样间隔趋于零时，插值函数一致收敛于被插函数。该论文还导出了一维函数及其在图像数据中向二维的可分离扩展；论文累计被引用超过 4,000 次。<sup>[2](https://www.researchgate.net/publication/3177062_Cubic_convolution_interpolation_for_digital_image_processing)</sup>

在 MATLAB 的实现中，核在 \( |x| \le 1 \) 时取值为 \( 1.5|x|^{3} - 2.5|x|^{2} + 1 \)，在 \( 1 < |x| \le 2 \) 时取值为 \( -0.5|x|^{3} + 2.5|x|^{2} - 4|x| + 2 \)，此外为零。<sup>[9](https://www.mathworks.com/help/matlab/creating_plots/create-and-compare-resizing-interpolation-kernels.html)</sup> 该核含有一个自由参数，通常设为 −1.0 或 −0.5，在遥感实践中很少被讨论，尽管它对结果影响深远。<sup>[6](https://library.esri.com/docs/5901.pdf)</sup>

## 历史

三次卷积早于基斯的论文。根据埃里克·梅耶林（Erik Meijering）的插值年表，里夫曼（Rifman）于 1973 年将该技术引入美国国家航空航天局（NASA）发射的第一颗地球资源技术卫星（ERTS）数字图像的几何校正；该方法后来由西蒙（Simon，1975）和伯恩斯坦（Bernstein，1976）更详细地讨论，而基斯 1981 年的论文成为标准参考文献。<sup>[10](https://imagescience.org/meijering/research/chronology/)</sup> 比较研究随之而来：1989 年梅兰（Maeland）分析了几种插值核的真实频谱，得出结论认为三次样条插值优于三次卷积；1993 年 Unser 及其同事在信号与图像处理的样条插值研究中延续了这一方向。<sup>[10](https://imagescience.org/meijering/research/chronology/)</sup>

## 与其他重采样核的比较

所有非自适应插值算法都在三种伪影之间权衡：混叠、模糊和边缘光晕。最近邻和双线性是仅有的不产生光晕伪影的常用核，代价是块状效应或模糊；双三次和兰索斯处于这一权衡的中间位置，这也是两者都成为最常用方法之一的原因。<sup>[11](https://www.cambridgeincolour.com/tutorials/digital-photo-enlargement.htm)</sup>

与相邻方法相比，差异是具体的。双三次每轴读取 4 个像素而非双线性的 2 个，计算更复杂，但总体上插值伪影更少，边缘保持更好；在无失真棋盘图像的并排测试中，双三次结果看起来比双线性略锐利，这一效果归因于其边缘保持行为。<sup>[4](https://pmc.ncbi.nlm.nih.gov/articles/PMC3898828/)</sup> a = 3 的兰索斯每轴读取 6 个像素，更加清晰，但在高对比度边缘上出现可见光晕和过冲，而双三次的 Catmull-Rom 形式给出清晰边缘，仅有轻微过冲。<sup>[5](https://rescaleimage.com/resampling-guide)</sup> MATLAB 的文档通过示例定量说明了同一点：在 10 倍放大时，双三次和 lanczos2 的结果看起来非常相似，且比双线性更锐利，而 lanczos3 更锐利，但出现可见的振铃伪影。<sup>[9](https://www.mathworks.com/help/matlab/creating_plots/create-and-compare-resizing-interpolation-kernels.html)</sup>

双三次和兰索斯核的负瓣是它们比双线性更锐利的原因，也是它们在硬边缘处产生过冲的原因——过冲表现为暗边界旁的淡淡亮线。<sup>[12](https://image-processing-handbook.github.io/docs/geometry/)</sup>

## 过冲及其影响所在

过冲是该方法的根本局限。一条被迫穿过包含阶跃的四个值的三次曲线，为了保持导数连续，会超出这些值的范围，而过冲就落在阶跃旁边。在图像中，这产生光晕；在地理空间数据中则更为严重，因为过冲恰好落在网格偏移曲面中断层或旧基准调整边界所在的位置，因此双线性——它总是返回四个角值范围内的值——对于结构化曲面往往是更安全的默认选择，尽管其精度阶数较低。<sup>[3](https://coordinatetransformation.org/core-transformation-fundamentals-standards/interpolation-methods-for-grid-shift-surfaces/bilinear-vs-bicubic-interpolation-for-grid-shifts/)</sup> 遥感实践反映了同样的权衡：三次卷积可能低估或高估像素值，扭曲影像的辐射特性，并可能干扰后续分析，因此当辐射保真度至关重要时通常使用最近邻，而双线性和三次卷积给出视觉上更令人满意的结果。<sup>[6](https://library.esri.com/docs/5901.pdf)</sup>

## 实现

双三次重采样是标准图像库中的内置选项。在从 OpenCV 4 迁移到 5 的过程中，`warpAffine`、`warpPerspective` 和 `remap` 切换到了更新后的双线性和双三次插值实现，不再使用查找表近似；API 保持不变，但结果与 OpenCV 4.x 略有不同，因为新数值更接近数学精确值。<sup>[13](https://github.com/opencv/opencv/wiki/OpenCV-4-to-5-migration)</sup> MATLAB 的 `imresize` 在其内置核中提供双三次，也接受自定义核函数以供比较。<sup>[9](https://www.mathworks.com/help/matlab/creating_plots/create-and-compare-resizing-interpolation-kernels.html)</sup> 在消费级软件中，双三次的一个变体是 Adobe Photoshop CS 和 CS2 的默认插值算法，另有双三次平滑和双三次锐化模式，在锐度与光晕和混叠之间进行权衡。<sup>[11](https://www.cambridgeincolour.com/tutorials/digital-photo-enlargement.htm)</sup>

## References

1. [Weisstein, Eric W. "Bicubic Interpolation." MathWorld--A Wolfram Resource](https://mathworld.wolfram.com/BicubicInterpolation.html)
2. [Keys, Robert G. "Cubic Convolution Interpolation for Digital Image Processing." IEEE Trans. Acoust. Speech Signal Process. 29(6): 1153–1160, 1981](https://www.researchgate.net/publication/3177062_Cubic_convolution_interpolation_for_digital_image_processing)
3. [Bilinear vs Bicubic Interpolation for Grid Shifts, CoordTransform](https://coordinatetransformation.org/core-transformation-fundamentals-standards/interpolation-methods-for-grid-shift-surfaces/bilinear-vs-bicubic-interpolation-for-grid-shifts/)
4. [Evaluation of different distortion correction methods and interpolation techniques for an automated classification of celiac disease, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC3898828/)
5. [Resampling kernels compared: nearest, bilinear, bicubic and Lanczos, RescaleImage](https://rescaleimage.com/resampling-guide)
6. [NCGIA: Geographic Information Analysis, Esri Library (resampling and radiometric fidelity)](https://library.esri.com/docs/5901.pdf)
7. [The OpenCV Reference Manual, Release 2.3](https://www.opencv.org.cn/opencvdoc/2.3.1/opencv2refman.pdf)
8. [Image interpolation methods, USPTO PTACTS document (doi:10.1016/S0262-8856(03)00137-9)](https://ptacts.uspto.gov/ptacts/public-informations/petitions/1527882/download-documents?artifactId=Vkka6Moppgcd0rSNasF63PiGxnJeCo2lg-KDohL9Y3Yz1jPVdSmTtD4)
9. [Create and Compare Resizing Interpolation Kernels, MATLAB & Simulink, MathWorks](https://www.mathworks.com/help/matlab/creating_plots/create-and-compare-resizing-interpolation-kernels.html)
10. [Meijering, E. "A Chronology of Interpolation: From Ancient Astronomy to Modern Signal and Image Processing." Proceedings of the IEEE 90(3): 319–342, 2002](https://imagescience.org/meijering/research/chronology/)
11. [Optimizing Digital Photo Enlargement, Cambridge in Colour](https://www.cambridgeincolour.com/tutorials/digital-photo-enlargement.htm)
12. [Geometry and Interpolation, Image Processing Handbook](https://image-processing-handbook.github.io/docs/geometry/)
13. [OpenCV 4 to 5 migration wiki, opencv/opencv, GitHub](https://github.com/opencv/opencv/wiki/OpenCV-4-to-5-migration)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Algorithms and computational methods › Numerical, string, and geometric algorithms › Numerical methods and approximation

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/bicubic-interpolation

English original: https://www.edgepedia.org/bicubic-interpolation
