关于「色温不是温度计读数:普朗克轨迹、McCamy 三次式的检验与 mired 档位」,《布光平方反比与色温混合》给出的定量结论是什么?

结论:再看主表。第二列与第三列是用解析拟合函数算出的黑体色度。拟合函数并不完全等于标准表格,所以在 2856 K 处得到 x 为 0.4462,而标准值是 0.44757;由此,McCamy 公式还原出的温度带上了拟合误差:2856 K 处还原为 2888.5 K,偏高 32.5 K;3200 K 处还原为 3235.4 K;5600 K 处为 5612.2 K,偏高 12.2 K;6504 K 处为 6510.0 K。最后一列把这些误差换算成 mired:3200 K 处只差 -3.42 mired,5600 K 处只差 -0.39 mired。下一节会说明,以 mired 计,这样的误差在摄影上微不足道。

数据口径:书中参数为示意;全部计算由书中程序生成;本书属于非个人化经营建议。 书中以标注框区分已发表的证据、可运行的 Python 计算(21 段程序)、原典与作者的假说。

English version

对照数据表

下表数字由本章 Python 程序原样打印,可重新运行复现。 程序只用 Python 标准库与结论吻合的打印值: -0.39, -3.42, 0.4462, 0.44757, 12.2, 2856

blackbody chromaticity (fitted CIE 1931) and McCamy CCT
T(K)xyMcCamyerror(K)error(mired)
17000.55750.40791756.3+56.3-18.85
20000.52410.41592019.6+19.6-4.85
28560.44620.40872888.5+32.5-3.94
32000.42230.39993235.4+35.4-3.42
40000.37980.37744029.7+29.7-1.84
50000.34480.35205017.4+17.4-0.69
56000.32990.33945612.2+12.2-0.39
65040.31330.32386510.0+6.0-0.14
80000.29510.30497982.6-17.4+0.27
100000.28070.28849874.2-125.8+1.27
150000.26380.267413955.8-1044.2+4.99
tabulated CIE points fed straight into McCamy:
illuminant A (0.44757, 0.40745): 2857.3 K (2856 K)
D65 (0.31271, 0.32902): 6504.4 K (about 6504 K)
查看完整验算程序
# Chapter 5. p51: blackbody chromaticity and McCamy's cubic.
# Planck spectrum M(l, T) ~ l^-5 / (exp(c2 / (l T)) - 1), c2 = 1.4388e-2
# m K, sampled 360 to 830 nm every 1 nm and weighted with the
# multi-lobe Gaussian fit of the CIE 1931 colour-matching functions by
# Wyman, Sloan and Shirley (2013, Table 1); sums by math.fsum. McCamy
# (1992): n = (x - 0.3320) / (y - 0.1858),
# CCT = -449 n^3 + 3525 n^2 - 6823.3 n + 5520.33.
import math

LOBES = {"x": ((0.362, 442.0, 0.0624, 0.0374),
               (1.056, 599.8, 0.0264, 0.0323),
               (-0.065, 501.1, 0.0490, 0.0382)),
         "y": ((0.821, 568.8, 0.0213, 0.0247),
               (0.286, 530.9, 0.0613, 0.0322)),
         "z": ((1.217, 437.0, 0.0845, 0.0278),
               (0.681, 459.0, 0.0385, 0.0725))}
C2 = 1.4388e-2
WL = [360.0 + i for i in range(471)]


def cmf(key, lam):
    out = []
    for a, b, g, d in LOBES[key]:
        t = (lam - b) * (g if lam < b else d)
        out.append(a * math.exp(-0.5 * t * t))
    return math.fsum(out)


BAR = {k: [cmf(k, w) for w in WL] for k in ("x", "y", "z")}


def planck_xyz(temp):
    sp = [(w * 1e-9) ** -5 / math.expm1(C2 / (w * 1e-9 * temp)) for w in WL]
    xyz = [math.fsum(s * b for s, b in zip(sp, BAR[k])) for k in "xyz"]
    return [v / xyz[1] for v in xyz]


def chroma(xyz):
    t = math.fsum(xyz)
    return xyz[0] / t, xyz[1] / t


def mccamy(x, y):
    n = (x - 0.3320) / (y - 0.1858)
    return -449 * n ** 3 + 3525 * n ** 2 - 6823.3 * n + 5520.33


if __name__ == "__main__":
    print("blackbody chromaticity (fitted CIE 1931) and McCamy CCT")
    print("    T(K)      x        y       McCamy   error(K)  error(mired)")
    for temp in (1700, 2000, 2856, 3200, 4000, 5000, 5600, 6504,
                 8000, 10000, 15000):
        x, y = chroma(planck_xyz(temp))
        c = mccamy(x, y)
        print("  {:6d}   {:.4f}   {:.4f}   {:7.1f}   {:+7.1f}   {:+7.2f}"
              .format(temp, x, y, c, c - temp, 1e6 / c - 1e6 / temp))
    print("tabulated CIE points fed straight into McCamy:")
    print("  illuminant A (0.44757, 0.40745): {:.1f} K (2856 K)".format(
        mccamy(0.44757, 0.40745)))
    print("  D65 (0.31271, 0.32902): {:.1f} K (about 6504 K)".format(
        mccamy(0.31271, 0.32902)))

唯一数据源与引用

范雅福(Fan, Y.). (2026). 《摄影棚布光平方反比与面光源衰减、色温混合与光比代数母典》第 5 章「色温不是温度计读数:普朗克轨迹、McCamy 三次式的检验与 mired 档位」(版本 1.0.0). 5D Library. DOI 待发布

DOI 待发布 · 专著页正式发布后上线(本站暂无专著页) · 5DL-B-325 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026325,
  author    = {Fan, Yafu},
  title     = {Inverse-Square Lighting and Area-Source Falloff in the Studio: Mixed Colour Temperatures and the Algebra of Lighting Ratios},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  note      = {DOI pending}
}

本书其他章节结论