Why does screen blending lighten overlapping highlights?

screen multiplies complements and inverts back. A black input leaves the other layer unchanged.

Pixel experiment and interpretation

Lay a gray highlight over black and over gray. Compare the two outputs. Screen makes a useful preview but its values are not exposure measurements.

from PIL import Image, ImageChops

def row(values):
    return Image.frombytes('L', (len(values), 1), bytes(values))

list(ImageChops.screen(row([0,128]),row([128,128])).tobytes())

Result [128, 192]

中文

两层亮度用滤色混合后为什么比原图亮?

screen 在反相空间中相乘再反相,黑色输入保持另一层原样。

像素实验与适用边界

把灰色光斑叠到黑底和灰底上,对比两边。它适合做光效预览;混合值不能直接解释为相机曝光量。

from PIL import Image, ImageChops

def row(values):
    return Image.frombytes('L', (len(values), 1), bytes(values))

list(ImageChops.screen(row([0,128]),row([128,128])).tobytes())

结果 [128, 192]

References / 参考来源

Keep reading / 继续阅读