# 平场校正

平场校正是图像处理中的一个步骤，用于去除图像中的乘性非均匀性，包括光照不均、渐晕、灰尘阴影以及探测器像元间的灵敏度差异，从而使视场内的强度可以相互比较。在天文数据处理中，图像校准会去除所有非天体信号计数，并校正灵敏度非均匀性。<sup>[1](https://www.astropy.org/ccd-reduction-and-photometry-guide/v/2.0.0/notebooks/01-05-Calibration-overview.html)</sup> 在高通量显微成像中，非均匀照明——也称强度非均匀性、明暗不均或渐晕——是最常见的系统噪声来源之一：它会引入噪声、掩盖真实的定量差异，并使依赖精确荧光强度测量的实验无法进行。<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC4359755/)</sup>

| 关键事实 | 详情 |
|---|---|
| 去除内容 | 渐晕、离焦灰尘阴影以及像元间灵敏度差异，均为乘性效应<sup>[3](https://physics.bgsu.edu/~layden/Anim/CCD_Images/ccd_flatfield.htm)</sup><sup> • </sup><sup>[4](https://ar5iv.labs.arxiv.org/html/1311.6467)</sup> |
| 核心公式 | \( I_{\mathrm{true}} = (I_{\mathrm{meas}} - \mathrm{Dark}) / \mathrm{Flat} \)<sup>[5](https://calm.ucsf.edu/how-acquire-flat-field-correction-images)</sup> |
| 暗帧（显微成像） | 10–100 毫秒曝光拍摄 100–500 张图像，取平均<sup>[5](https://calm.ucsf.edu/how-acquire-flat-field-correction-images)</sup> |
| 平帧（天文） | 每个圆顶位置约 20 张图像，加上约 75 张夜空曝光，每像元 15,000–25,000 电子，合成信噪比约 400<sup>[6](https://beta.iopscience.iop.org/article/10.1086/673440/meta)</sup> |
| 测光精度 | 在标准星测试中，圆顶平场给出的零点离散约为 0.66%，暮光平场约为 0.93%<sup>[6](https://beta.iopscience.iop.org/article/10.1086/673440/meta)</sup> |
| 匹配要求 | 平场必须使用与观测相同的滤光片拍摄<sup>[7](https://iraf.readthedocs.io/en/latest/tasks/noao/imred/quadred/flatfields.html)</sup> |
| 适用范围 | 相机固件的平场校正仅能修正静态效应；更换镜头或照明后需要重新校准<sup>[8](https://docs.baslerweb.com/flat-field-correction)</sup> |

## 工作原理

每个像元的测量信号被建模为真实场景与系统响应的乘积。对于天文图像，观测到的天空信号是入射光图案 \( R(x) \)、渐晕 \( V(x) \)、灰尘阴影 \( s(x) \) 和像元间灵敏度 \( q(x) \) 的乘积。由于平帧对均匀光源记录的是同一乘积，将目标图像逐像元除以平帧即可消去这些项：\( S_{o}(x)/S_{s}(x) = R_{o}(x)/R_{s}(x) \)。<sup>[3](https://physics.bgsu.edu/~layden/Anim/CCD_Images/ccd_flatfield.htm)</sup> 因此，平帧既记录了高空间频率的像元间变化，也记录了由离焦灰尘阴影引起的低空间频率变化。<sup>[4](https://ar5iv.labs.arxiv.org/html/1311.6467)</sup>

在显微成像中，模型增加了一个加性暗偏移：\( I_{\mathrm{meas}} = \mathrm{Dark} + I_{\mathrm{true}} \cdot \mathrm{Flat} \)，反解为 \( I_{\mathrm{true}} = (I_{\mathrm{meas}} - \mathrm{Dark}) / \mathrm{Flat} \)。<sup>[5](https://calm.ucsf.edu/how-acquire-flat-field-correction-images)</sup> 詹姆斯·韦布空间望远镜数据处理流程将科学数组除以平场参考数组，并将泊松噪声和读出噪声方差数组除以平场的平方，从而传播平场不确定度。<sup>[9](https://jwst-pipeline.readthedocs.io/en/stable/jwst/flatfield/main.html)</sup>

## 操作方法

天文学家在多种平场光源中进行选择。暮光天空平场是最简单、最直接的方法，在天空完全晴朗时首选，理想情况下在黎明和黄昏暮光期间各采集一组平场。<sup>[3](https://physics.bgsu.edu/~layden/Anim/CCD_Images/ccd_flatfield.htm)</sup> 圆顶平场使用由色平衡灯照明的反射屏，模拟夜空光谱，使观测者可以从容地获取高信噪比序列。<sup>[3](https://physics.bgsu.edu/~layden/Anim/CCD_Images/ccd_flatfield.htm)</sup> 将两者结合可以分离效应：天空平场捕获渐晕和圆顶照明等大尺度响应，而圆顶平场捕获灰尘环和像元间灵敏度等小尺度结构。<sup>[3](https://physics.bgsu.edu/~layden/Anim/CCD_Images/ccd_flatfield.htm)</sup> 一套已发表的圆顶平场系统由每个圆顶位置约 20 张图像和约 75 张夜空曝光构建平场，典型信号为每像元高于偏置 15,000–25,000 电子，合成平场信噪比约为 400。<sup>[6](https://beta.iopscience.iop.org/article/10.1086/673440/meta)</sup>

在显微成像中，使用均匀荧光玻片拍摄平场。一种协议采集 9×9 网格、重叠 50% 的图像，以平均掉染料溶液中的非均匀性，然后用中值强度投影合并，该方法对荧光灰尘颗粒等离群值具有稳健性。<sup>[5](https://calm.ucsf.edu/how-acquire-flat-field-correction-images)</sup> 暗图像在无光到达相机的情况下采集，使用 10–100 毫秒曝光的 100–500 张图像，以 ImageJ Z 投影平均强度取平均。<sup>[5](https://calm.ucsf.edu/how-acquire-flat-field-correction-images)</sup> 平场经背景减除并归一化，使其数值在 1 附近，工作在 32 位深度或更高。<sup>[10](https://neubias.github.io/training-resources/flatfield_correction/index.html)</sup>

## 起源

没有已发表的文献指明平场校正的单一发明者；它作为天文 CCD 成像中的既定实践出现，已发表文献始于该传统内具名的技术论文。沃尔特·J·怀尔德（Walter J. Wild）于 1997 年在《太平洋天文学会汇刊》上发表了一种相关方法，从 CCD 相对照明光源的小角度位移推导出一个函数方程，从而获得不依赖照明光源的平场帧。<sup>[11](https://doi.org/10.1086/134007)</sup> 其动机来自[哈勃空间望远镜](https://www.edgepedia.org/zh/hubble-space-telescope)（Hubble Space Telescope），它无法使用暮光平场或圆顶平场；该方程推广到二维后成为一个椭圆型偏微分方程，将偏移的 CCD 测量与平场函数联系起来。<sup>[11](https://doi.org/10.1086/134007)</sup>

## 变体

文献描述了若干直接采集平场的替代方案：在不同探测器位置对时间无关信号进行多次曝光、扫描扩展光源、对非均匀背景源进行抖动观测，以及同时观测多颗测光定标星，其中大多数未被广泛采用。<sup>[6](https://beta.iopscience.iop.org/article/10.1086/673440/meta)</sup> 使用实测星等进行的照明校正，在测光校准模型中添加了探测器坐标的函数项。<sup>[4](https://ar5iv.labs.arxiv.org/html/1311.6467)</sup>

在显微成像中，BaSiC 使用低秩与稀疏分解校正空间明暗和时间背景变化，其开发者称该方法以显著少于现有明暗校正工具的输入图像达到高精度，并对伪影具有稳健性<sup>[12](https://www.nature.com/articles/ncomms14836.pdf)</sup>；它还能校正延时数据中的时间漂移，改善连续单细胞定量。<sup>[12](https://www.nature.com/articles/ncomms14836.pdf)</sup> 一种可扩展的前景感知实现 BaSiCPy 由刘宇（Yu Liu）及其同事于 2026 年在 bioRxiv 预印本上报道。<sup>[13](https://doi.org/10.64898/2026.04.28.721386)</sup> 回顾性照明校正函数（ICF）通过平均一批中的所有图像、用中值滤波（窗口大小 500 像元）平滑、再将每张图像除以 ICF 来计算。<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC4359755/)</sup> EVEN 由埃琳娜·科尔贝塔（Elena Corbetta）及其同事于 2026 年在《自然·通讯》上报道，可自动设置正则化参数并估计平场和暗场明暗分布。<sup>[14](https://www.nature.com/articles/s41467-025-68150-0)</sup> 对于光片数据，DeStripe 是一种盲式自监督空间-光谱图神经网络，用于去除由照明不均引起的条纹伪影。<sup>[15](https://ar5iv.labs.arxiv.org/html/2206.13419)</sup>

## 应用

天文数据处理流程常规应用该校正：詹姆斯·韦布空间望远镜的 flat_field 步骤将科学数据除以平场参考文件，并将平场中为 NaN 或零的像元标记为 NO_FLAT_FIELD 和 DO_NOT_USE，将其重置为 1.0。<sup>[9](https://jwst-pipeline.readthedocs.io/en/stable/jwst/flatfield/main.html)</sup>

在显微成像中，回顾性 ICF 方法在开源软件 CellProfiler 中实现<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC4359755/)</sup>，基于玻片的协议通过 Micro-manager 平场校正插件运行<sup>[5](https://calm.ucsf.edu/how-acquire-flat-field-correction-images)</sup>；许多平场工具以 Fiji 和 Napari 插件形式实现，供非专业用户使用。<sup>[14](https://www.nature.com/articles/s41467-025-68150-0)</sup>

定量而言，LED 照明的朗伯圆顶平场给出的测光零点标准差约为 0.66%，暮光天空平场约为 0.93%。<sup>[6](https://beta.iopscience.iop.org/article/10.1086/673440/meta)</sup> 在 BBBC021 [高内涵筛选](https://www.edgepedia.org/zh/high-content-screening)实验中，微管蛋白强度 Z 因子从无校正时的 −0.57 改善为在白参考基础上应用回顾性照明校正后的 −0.40，且事后计算校正即使对已由白参考校正的图像也能带来超过 0.10 的 Z 因子改善。<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC4359755/)</sup>

## 局限与替代方案

使用均匀光源的平场校正不能完美校正灵敏度变化，尤其是较大尺度的变化，原因包括中心光集中、照明不均或平场光源与测量对象之间的光谱能量分布不同。<sup>[4](https://ar5iv.labs.arxiv.org/html/1311.6467)</sup> 暮光平场必须在日落后受限的时间窗口内获取，且可能带有显著的照明梯度，对宽视场观测尤为如此。<sup>[6](https://beta.iopscience.iop.org/article/10.1086/673440/meta)</sup> 圆顶平场方便且信噪比极高，但其颜色和照明图案可能无法很好地再现观测条件。<sup>[6](https://beta.iopscience.iop.org/article/10.1086/673440/meta)</sup> 望远镜或圆顶的散射光在实际观测中不存在，却可能损害天空、暗场和圆顶平场技术的准确性。<sup>[6](https://beta.iopscience.iop.org/article/10.1086/673440/meta)</sup>

灰尘状况会发生变化：圆顶平场的采集时间与目标图像的拍摄时间应相隔不超过数小时，因为灰尘特征可能在数小时或数天内变化。<sup>[3](https://physics.bgsu.edu/~layden/Anim/CCD_Images/ccd_flatfield.htm)</sup> 当校正图像和原始图像在差异很大的曝光或 X 射线散射条件下采集时，固定噪声图案可能无法完全抵消，导致校正图像的探测量子效率损失。<sup>[16](https://escholarship.org/content/qt51c1834x/qt51c1834x_noSplash_af5ab4617522412bfa5c88dcd9b45a3a.pdf)</sup> 相机固件的平场校正仅能修正静态效应；如果镜头或照明发生变化，必须重新校准。<sup>[8](https://docs.baslerweb.com/flat-field-correction)</sup>

与其他替代方案相比，白参考——将每张图像除以每次曝光后立即拍摄的空白场图像——提供了简单校正，但对灰尘或整体亮度变化等伪影不够稳健，且对高通量或荧光实验不实用。<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC4359755/)</sup>

## References

1. [1.4. Calibration overview, CCD Data Reduction Guide (Astropy)](https://www.astropy.org/ccd-reduction-and-photometry-guide/v/2.0.0/notebooks/01-05-Calibration-overview.html)
2. [Pipeline for illumination correction of images for high-throughput microscopy (Singh et al., Journal of Microscopy 2014)](https://pmc.ncbi.nlm.nih.gov/articles/PMC4359755/)
3. [CCD signal to noise / flat fielding (Bowling Green State University)](https://physics.bgsu.edu/~layden/Anim/CCD_Images/ccd_flatfield.htm)
4. [Removal of systematics in photometric measurements: static and rotating illumination corrections in FORS2@VLT data (arXiv:1311.6467)](https://ar5iv.labs.arxiv.org/html/1311.6467)
5. [How to acquire flat-field correction images | Center for Advanced Light Microscopy (UCSF)](https://calm.ucsf.edu/how-acquire-flat-field-correction-images)
6. [Flattening Scientific CCD Imaging Data with a Dome Flat-Field System (PASP, 2013)](https://beta.iopscience.iop.org/article/10.1086/673440/meta)
7. [flatfields: Discussion of CCD flat field calibrations (IRAF documentation)](https://iraf.readthedocs.io/en/latest/tasks/noao/imred/quadred/flatfields.html)
8. [Flat-Field Correction | Basler Product Documentation](https://docs.baslerweb.com/flat-field-correction)
9. [JWST flat_field step documentation](https://jwst-pipeline.readthedocs.io/en/stable/jwst/flatfield/main.html)
10. [Flat-field correction, Bioimage Analysis Training Resources (NEUBIAS)](https://neubias.github.io/training-resources/flatfield_correction/index.html)
11. [W. Wild (1997). Reconstructing Flat Fields from Non-Uniform Background Illumination Sources. Publications of the Astronomical Society of the Pacific.](https://doi.org/10.1086/134007)
12. [A BaSiC tool for background and shading correction of optical microscopy images (Nature Communications)](https://www.nature.com/articles/ncomms14836.pdf)
13. [Yu Liu and colleagues (2026). BaSiCPy: Scalable and Robust Shading Correction for Optical Microscopy Images. bioRxiv (Cold Spring Harbor Laboratory).](https://doi.org/10.64898/2026.04.28.721386)
14. [Automatic optimization of flat-field corrections by evaluation and enhancement (EVEN) in multimodal optical microscopy (Nature Communications, 2026)](https://www.nature.com/articles/s41467-025-68150-0)
15. [DeStripe: A Self2Self Spatio-Spectral Graph Neural Network with Unfolded Hessian for Stripe Artifact Removal in Light-sheet Microscopy](https://ar5iv.labs.arxiv.org/html/2206.13419)
16. [SPIE proceedings paper on flat-field correction (eScholarship)](https://escholarship.org/content/qt51c1834x/qt51c1834x_noSplash_af5ab4617522412bfa5c88dcd9b45a3a.pdf)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026; Oct 21, 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/flat-field-correction

English original: https://www.edgepedia.org/flat-field-correction
