# 全变差

**全变差**是对一个函数、测度或图像的振荡程度的数值度量：对于区间上的实函数，它是该区间所有有限有序划分上，函数在相邻划分点之间绝对变化量之和的上确界<sup>[1](https://encyclopediaofmath.org/wiki/Variation_of_a_function)</sup>。全变差有限的函数称为有界变差函数，这一概念由卡米尔·若尔当（Camille Jordan）引入，用于研究傅里叶级数的逐点收敛性<sup>[1](https://encyclopediaofmath.org/wiki/Variation_of_a_function)</sup><sup> • </sup><sup>[2](https://encyclopediaofmath.org/wiki/Function_of_bounded_variation)</sup>。

| 关键事实 | 详情 |
|---|---|
| 定义 | \( \mathrm{TV}(f) := \sup \{ \sum_{i=1}^{N} |f(a_{i+1}) - f(a_i)| : (a_1, \ldots, a_{N+1}) \in \Pi \} \)，即对区间所有有序有限划分取上确界<sup>[1](https://encyclopediaofmath.org/wiki/Variation_of_a_function)</sup> |
| 光滑情形 | 对于连续可微函数，全变差等于导数绝对值的积分<sup>[3](https://mathworld.wolfram.com/TotalVariation.html)</sup> |
| 若尔当分解 | 函数具有有界变差当且仅当它是两个有界非减函数之差，且 \( \mathrm{TV}(f) = f_+(b) - f_+(a) + f_-(b) - f_-(a) \)<sup>[1](https://encyclopediaofmath.org/wiki/Variation_of_a_function)</sup> |
| 测度对应 | 在 \( -\infty \) 处为零的右连续有界变差函数与有限符号测度一一对应，且 \( \mathrm{TV}(f) \) 等于总质量 \( |\mu|(\mathbb{R}) \)<sup>[1](https://encyclopediaofmath.org/wiki/Variation_of_a_function)</sup> |
| 全变差距离 | 概率测度之间，\( d_{\mathrm{TV}} = \sup_A |\mu(A) - \nu(A)| \)，等于密度之间 \( L^1 \) 距离的一半，取值在 \( [0,1] \) 中，且等于所有耦合下 \( \Pr(X \neq Y) \) 的下确界<sup>[4](https://arxiv.org/html/math/0209021)</sup> |
| 成像 | Rudin–Osher–Fatemi 模型（Physica D 60, 1992, 第259–268页）最小化全变差半范数；有界变差空间是自然的设定，因为它允许尖锐的不连续（边缘）<sup>[5](https://dl.acm.org/doi/10.1137/070711128)</sup><sup> • </sup><sup>[6](https://websites.umich.edu/~esedoglu/Papers_Preprints/chan_esedoglu_park_yip.pdf)</sup> |
| 紧性 | 具有一致有界 BV 范数的有界变差函数序列存在子序列在 \( L^1 \) 中强收敛<sup>[7](https://hal.science/hal-00437581/document)</sup> |

## 定义与基本性质

对于区间 \( I \) 上的函数 \( f: I \to \mathbb{R} \)，全变差为

全变差定义为对所有划分 (a_1, …, a_{N+1}) ∈ Π 求 |f(a_{i+1}) − f(a_i)| 之和的最小上界。

其中 \( \Pi \) 是 \( I \) 的有序有限划分的集合<sup>[1](https://encyclopediaofmath.org/wiki/Variation_of_a_function)</sup>。若全变差有限，则称 \( f \) 为有界变差函数<sup>[1](https://encyclopediaofmath.org/wiki/Variation_of_a_function)</sup>。

**光滑函数。** 当 \( f \) 连续可微时，上确界退化为一个积分：全变差等于区间上的 \( \int |f'(x)| \, dx \)<sup>[3](https://mathworld.wolfram.com/TotalVariation.html)</sup>。

**分布定义。** 在多变量情形下，全变差以对偶方式定义。对于开集 \( \Omega \subset \mathbb{R}^n \) 上的 \( u \in L^1_{\mathrm{loc}} \)，

\[ V(u, \Omega) := \sup \left\{ \int_\Omega u \, \mathrm{div}\, \psi : \psi \in C_c^\infty(\Omega, \mathbb{R}^n), \ \|\psi\|_{C^0} \leq 1 \right\}, \]

且 \( V(u, \Omega) \) 有限的函数构成空间 \( \mathrm{BV}(\Omega) \)<sup>[1](https://encyclopediaofmath.org/wiki/Variation_of_a_function)</sup>。\( \mathrm{TV}(u) \) 有限的另一个等价条件是存在一个有限 Radon 测度表示 \( u \) 的分布导数；此外，该泛函是凸的，且对任意 \( p \in [1, \infty) \) 关于 \( L^p \) 收敛是下半连续的<sup>[8](https://iopscience.iop.org/article/10.1088/1361-6420/ab8f80)</sup>。由于定义在检验向量场上使用了欧几里得范数，全变差在平移、旋转以及更一般的保持欧几里得距离的变换下不变，这就是此形式被称为*各向同性全变差*的原因<sup>[8](https://iopscience.iop.org/article/10.1088/1361-6420/ab8f80)</sup>。

## 有界变差函数与若尔当分解

关键的结构性定理归功于若尔当：对于函数 \( f: I \to \mathbb{R} \)，有界变差成立当且仅当 f 可表示为两个有界非减函数之差<sup>[1](https://encyclopediaofmath.org/wiki/Variation_of_a_function)</sup>。若尔当分解给出非减的 \( f_+ \) 和 \( f_- \)，满足 \( f = f_+ - f_- \) 以及

\[ \mathrm{TV}(f) = f_+(b) - f_+(a) + f_-(b) - f_-(a), \]

且该分解在相差一个常数的意义下唯一<sup>[1](https://encyclopediaofmath.org/wiki/Variation_of_a_function)</sup>。

**康托尔函数。** 康托尔三分函数被称为魔鬼阶梯，在某些意大利作者中称为康托尔–维塔利函数，它是连续有界变差函数中最著名的例子，光滑情形下成立的积分公式在此失效；维塔利最早观察到这一点。其导数几乎处处为零，它是勒贝格分解中奇异函数的原型<sup>[2](https://encyclopediaofmath.org/wiki/Function_of_bounded_variation)</sup>。

**BV 空间。** 赋以范数 \( \|u\|_{\mathrm{BV}} := \|u\|_{L^1} + V(u, \Omega) \)，空间 \( \mathrm{BV}(\Omega) \) 是一个不自反的巴拿赫空间，但它是某个可分空间的对偶<sup>[2](https://encyclopediaofmath.org/wiki/Function_of_bounded_variation)</sup>。它包含索伯列夫空间 \( W^{1,1}(\Omega) \)，且 BV 范数限制在 \( W^{1,1} \) 上与 \( W^{1,1} \) 范数一致<sup>[2](https://encyclopediaofmath.org/wiki/Function_of_bounded_variation)</sup>。与 \( W^{1,1} \) 不同，BV 允许不连续，这使其作为“卡通”图像的空间颇具吸引力<sup>[9](https://arxiv.org/html/2605.12041)</sup>。

**历史。** 若尔当引入一元实函数的变差以研究傅里叶级数的逐点收敛性；若尔当判别法推广了狄利克雷定理<sup>[1](https://encyclopediaofmath.org/wiki/Variation_of_a_function)</sup><sup> • </sup><sup>[2](https://encyclopediaofmath.org/wiki/Function_of_bounded_variation)</sup>。这一概念迅速多样化：到1933年，已有六种广义有界变差的定义，分别与维塔利、哈代、阿尔泽拉、皮尔庞特、弗雷歇和托内利的名字相关联<sup>[10](https://www.ams.org/journals/tran/1933-035-04/S0002-9947-1933-1501718-2/S0002-9947-1933-1501718-2.pdf)</sup>。

## 测度的全变差

测度论概念与函数论概念直接相连。在 \( -\infty \) 处为零的右连续有界变差函数与有限全变差符号测度一一对应，在此对应下 \( \mathrm{TV}(f) \) 等于相应测度的总质量 \( |\mu|(\mathbb{R}) \)<sup>[1](https://encyclopediaofmath.org/wiki/Variation_of_a_function)</sup>。

## 关键定理：紧性与选取

**海莱选取定理。** 若 \( \{f_n\} \) 是 \( (a,b) \) 上一致有界且全变差一致有界于 \( M \) 的实值函数序列，则存在处处收敛的子序列<sup>[11](https://www.ms.u-tokyo.ac.jp/publication/docs/lecturenotes15-rybka.pdf)</sup>。

**多变量中的 \( L^1 \) 紧性。** 在 BV 框架中，具有一致有界 BV 范数的函数序列存在子序列在 \( L^1(\Omega) \) 中强收敛于一个有界变差函数<sup>[7](https://hal.science/hal-00437581/document)</sup>。

**余面积公式。** Federer–Fleming 余面积公式指出，对于 \( u \in \mathrm{BV}(\Omega) \)，对几乎每一个水平 \( s \in \mathbb{R} \)，集合 \( \{u > s\} \) 是有限周长的集合<sup>[7](https://hal.science/hal-00437581/document)</sup>。通过它，全变差可被视为同时控制函数中跳跃的大小及其水平集的几何<sup>[6](https://websites.umich.edu/~esedoglu/Papers_Preprints/chan_esedoglu_park_yip.pdf)</sup>。BV 将偏微分方程理论与几何测度论联系起来，这一联系在 Rudin–Osher–Fatemi 去噪问题的分析中可见<sup>[11](https://www.ms.u-tokyo.ac.jp/publication/docs/lecturenotes15-rybka.pdf)</sup>。

## 概率与统计中的全变差距离

对于空间 \( \Omega \) 上的概率测度 \( \mu \) 和 \( \nu \)，全变差距离为

\[ d_{\mathrm{TV}}(\mu, \nu) = \sup_{A \subset \Omega} |\mu(A) - \nu(A)| = \frac{1}{2} \max_{|h| \leq 1} \left| \int h \, d\mu - \int h \, d\nu \right|, \]

对于离散测度 \( d_{\mathrm{TV}} = \frac{1}{2} \sum_{x \in \Omega} |\mu(x) - \nu(x)| \)，即两个测度之间 \( L^1 \) 范数的一半。该度量取值在 \( [0,1] \) 中<sup>[4](https://arxiv.org/html/math/0209021)</sup>。

**耦合刻画。** 该距离有一个等价的概率形式：\( d_{\mathrm{TV}}(\mu, \nu) = \inf \{ \Pr(X \neq Y) : X, Y \text{ 是分别以 } \mu, \nu \text{ 为分布的随机变量} \} \)，即两个耦合的分布副本不同的最小概率<sup>[4](https://arxiv.org/html/math/0209021)</sup>。

**与其他距离的比较。** 瓦瑟斯坦度量满足 \( d_W \leq \mathrm{diam}(\Omega) \cdot d_{\mathrm{TV}} \)，海林格距离满足 \( (d_H)^2/2 \leq d_{\mathrm{TV}} \leq d_H \)<sup>[4](https://arxiv.org/html/math/0209021)</sup>。在贝叶斯统计中，当损失函数有界时，用一个测度近似另一个测度所引起的期望损失误差由全变差距离界定<sup>[4](https://arxiv.org/html/math/0209021)</sup>。

## 成像与反问题中的全变差

全变差通过 L. Rudin、S. Osher 和 E. Fatemi 在 Physica D 60 (1992), 第259–268页的工作进入图像处理<sup>[5](https://dl.acm.org/doi/10.1137/070711128)</sup>。他们的先验假设是，有界变差函数（BV 模型）是图像的合理函数模型，其不连续沿可求长曲线分布，这些曲线可识别为边缘<sup>[12](https://people.dm.unipi.it/novaga/papers/chambolle/TVHandbook/TVHandbook6.pdf)</sup>。

**全变差为何保持边缘。** BV 空间是去噪模型极小化解所在的理想空间，因为它提供解的正则性同时允许尖锐的不连续；索伯列夫空间 \( W^{1,1} \) 等空间不允许边缘<sup>[6](https://websites.umich.edu/~esedoglu/Papers_Preprints/chan_esedoglu_park_yip.pdf)</sup>。两个定量性质解释了实际中的行为。第一，全变差正则化倾向于保持边缘位置，且在特定条件下精确保持它们<sup>[13](https://ww3.math.ucla.edu/camreport/cam00-38.pdf)</sup>。第二，全变差正则化下的强度变化恰好与局部特征尺度成反比，与原始强度无关，与正则化参数 \( \alpha \) 成正比；这就是全变差恢复去除较小尺度噪声而基本保持较大尺度特征不变的原因<sup>[13](https://ww3.math.ucla.edu/camreport/cam00-38.pdf)</sup>。对可微平面图像的各向同性全变差施加惩罚，倾向于得到区域上近似常值同时允许尖锐边缘的图像<sup>[3](https://mathworld.wolfram.com/TotalVariation.html)</sup>。

**模型形式。** 约束问题——在 \( \|u - f\|_{L^2}^2 = \sigma^2 |\Omega| \) 的约束下最小化 \( |Du|(\Omega) \)——已被证明等价于惩罚型 Rudin–Osher–Fatemi 模型 \( \min |Du|(\Omega) + \lambda \|u - f\|_{L^2}^2 \)<sup>[14](https://www.degruyterbrill.com/document/doi/10.1515/jaa-2020-2031/html)</sup>。在无约束形式下，ROF 泛函是严格凸的且具有唯一极小值<sup>[6](https://websites.umich.edu/~esedoglu/Papers_Preprints/chan_esedoglu_park_yip.pdf)</sup>。Chan 和 Esedoğlu 在 SIAM Journal on Applied Mathematics 65 (2005), 第1817–1837页研究了全变差正则化的变体<sup>[5](https://dl.acm.org/doi/10.1137/070711128)</sup>。

**离散形式。** 在离散情形下，离散全变差通过图像值的变化来定义，通常使用相邻像素之间的有限差分，而仅凭凸性和非负性并不能使函数 \( J: \mathbb{R}^M \to [0, +\infty] \) 成为离散全变差<sup>[12](https://people.dm.unipi.it/novaga/papers/chambolle/TVHandbook/TVHandbook6.pdf)</sup><sup> • </sup><sup>[20](https://lcondat.github.io/publis/Condat-SIIMS-2017.pdf)</sup>。梯度上的标准欧几里得范数产生各向同性 BV 泛函，而 \( \ell_\infty \) 范数产生各向异性版本，后者在算法上通常更方便<sup>[9](https://arxiv.org/html/2605.12041)</sup>；各向异性全变差源于非欧几里得范数，如 \( |\cdot|_1 \)<sup>[8](https://iopscience.iop.org/article/10.1088/1361-6420/ab8f80)</sup>。

**应用。** 除去噪外，全变差方法还应用于光流、立体成像和三维表面重建、分割和插值<sup>[12](https://people.dm.unipi.it/novaga/papers/chambolle/TVHandbook/TVHandbook6.pdf)</sup>。全变差最小化被用作压缩感知中的正则化项，包括欠采样磁共振图像的重建（Lustig 等 2007）<sup>[3](https://mathworld.wolfram.com/TotalVariation.html)</sup>，高阶全变差族（下确卷积多阶全变差、总广义变差）在 MRI、CT、MR-PET 和电子断层成像中找到应用<sup>[8](https://iopscience.iop.org/article/10.1088/1361-6420/ab8f80)</sup>。一个局限是某些真实图像不能由有界变差函数表示<sup>[14](https://www.degruyterbrill.com/document/doi/10.1515/jaa-2020-2031/html)</sup>，而全变差无法描述局部特征强度、锐度和方向性，这促使了使用自适应正则化加权、可变光滑性和各向异性的空间变化扩展<sup>[15](https://dl.acm.org/doi/10.1137/21M1410683)</sup>。

## 近期进展

**大规模反问题的求解器。** 一种针对具有全变差正则化的 Tikhonov 泛函的半光滑\(^*\)牛顿型最小化方法，为大规模反问题量身定制，具有局部超线性收敛性，并已在大规模断层成像问题上得到验证；对于 \( A = I \)，该泛函退化为 Rudin–Osher–Fatemi 去噪泛函<sup>[9](https://arxiv.org/html/2605.12041)</sup>。

**精确恢复理论。** 2024年《反问题》中的一项结果表明，若未知图像是少数简单形状的叠加且非退化源条件成立，则在低噪声情形下，全变差重建的图像具有相同的结构，是相同数量形状的叠加，每个形状是未知形状之一的光滑变形，且随着噪声趋于零，重建的形状和强度收敛于未知的形状和强度<sup>[16](https://iopscience.iop.org/article/10.1088/1361-6420/ad75b1)</sup>。

**学习先验与全变差的混合。** 2025年的一个模型 DIP-ATV 通过耦合到梯度算子的加权矩阵将深度图像先验与各向异性全变差相结合，利用交替方向乘子法将求解过程分解为可高效求解的子问题；在 PSNR、SSIM 和 LPIPS 指标上优于最先进的无监督去噪方法<sup>[17](https://link.springer.com/article/10.1186/s13662-025-03984-y)</sup>。与此同时，ROF 模型仍然是基于学习的重建方法的基准<sup>[15](https://dl.acm.org/doi/10.1137/21M1410683)</sup>。

## 相关概念与进一步阅读

有界变差的经典应用是曲线的求长：该概念直接联系到曲线弧长的定义<sup>[18](https://link.springer.com/chapter/10.1007/978-981-96-1169-0_5)</sup>。除经典概念外，大量研究涉及广义有界变差；De Gruyter 在其专著中给出了（广义）有界变差函数的完整且自足的处理，涵盖研究它们所用的技术、它们如何与其他重要函数类相联系以及它们的应用之处<sup>[19](https://www.degruyterbrill.com/document/doi/10.1515/9783110265118/html?lang=en)</sup>。对于成像，综述文献包括 Chambolle–Caselles–Novaga–Pons 关于图像分析中全变差的讲义<sup>[7](https://hal.science/hal-00437581/document)</sup>以及 Chan–Esedoğlu–Park–Yip 关于全变差图像恢复近期发展的综述<sup>[6](https://websites.umich.edu/~esedoglu/Papers_Preprints/chan_esedoglu_park_yip.pdf)</sup>。

## References

1. [Variation of a function, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Variation_of_a_function)
2. [Function of bounded variation, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Function_of_bounded_variation)
3. [Total Variation, Wolfram MathWorld](https://mathworld.wolfram.com/TotalVariation.html)
4. [On choosing and bounding probability metrics, arXiv survey](https://arxiv.org/html/math/0209021)
5. [Total Variation Regularization for Image Denoising, III. Examples, SIAM Journal on Imaging Sciences](https://dl.acm.org/doi/10.1137/070711128)
6. [Recent Developments in Total Variation Image Restoration, Chan, Esedoğlu, Park, Yip](https://websites.umich.edu/~esedoglu/Papers_Preprints/chan_esedoglu_park_yip.pdf)
7. [An introduction to Total Variation for Image Analysis, Chambolle, Caselles, Novaga, Pons](https://hal.science/hal-00437581/document)
8. [Higher-order total variation approaches and generalisations, Inverse Problems](https://iopscience.iop.org/article/10.1088/1361-6420/ab8f80)
9. [Efficient TV regularization of large-scale linear inverse problems via the SCD semismooth* Newton method with applications in tomography, arXiv](https://arxiv.org/html/2605.12041)
10. [Transactions of the AMS 35 (1933) on generalized bounded variation definitions](https://www.ams.org/journals/tran/1933-035-04/S0002-9947-1933-1501718-2/S0002-9947-1933-1501718-2.pdf)
11. [Lecture Notes in Mathematical Sciences, The University of Tokyo (P. Rybka)](https://www.ms.u-tokyo.ac.jp/publication/docs/lecturenotes15-rybka.pdf)
12. [Total Variation in Imaging, handbook chapter, Chambolle et al.](https://people.dm.unipi.it/novaga/papers/chambolle/TVHandbook/TVHandbook6.pdf)
13. [Edge-preserving and scale-dependent properties of total variation regularization, Strong & Chan, UCLA CAM Report 00-38](https://ww3.math.ucla.edu/camreport/cam00-38.pdf)
14. [Exact solutions for the total variation denoising problem, Journal of Applied Analysis](https://www.degruyterbrill.com/document/doi/10.1515/jaa-2020-2031/html)
15. [On and Beyond Total Variation Regularization in Imaging: The Role of Space Variance, SIAM Review](https://dl.acm.org/doi/10.1137/21M1410683)
16. [Exact recovery of the support of piecewise constant images via total variation regularization, Inverse Problems (2024)](https://iopscience.iop.org/article/10.1088/1361-6420/ad75b1)
17. [DIP-based anisotropic total variation regularization for image denoising (2025)](https://link.springer.com/article/10.1186/s13662-025-03984-y)
18. [The Functions of Bounded Variation, Springer chapter](https://link.springer.com/chapter/10.1007/978-981-96-1169-0_5)
19. [Bounded Variation and Around, De Gruyter monograph](https://www.degruyterbrill.com/document/doi/10.1515/9783110265118/html?lang=en)
20. [Condat SIIMS 2017.pdf, lcondat.github.io](https://lcondat.github.io/publis/Condat-SIIMS-2017.pdf)

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

Topic: 物质世界与数学 › 数学与统计学 › 数学分析与数学模型 › Real analysis

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/total-variation

English original: https://www.edgepedia.org/total-variation
