混合模式

混合模式(或**混合模式**或**混合模式**)在 Kdenlive 中也被称为**合成类型**。它们决定了两幅图像如何混合在一起。默认混合模式会直接用上层轨道的图像覆盖下层轨道的内容,同时考虑任何 Alpha 通道 信息。

在本节中,我们使用 组合类型 Cairo Blend 来解释不同的混合模式。

合成/混合需要至少两个轨道:顶部的轨道或“图层”,也称为*混合图层*或*活动图层*;以及“底部”的轨道或图层,也称为*基底图层*。在混合合成中,*混合图层*始终是合成来源的轨道,而*基底图层*可通过 合成轨道 指定。默认情况下,它被设为 自动,即使用正下方的轨道。

../_images/cairo_blend-blend_mode.gif

选择合成轨道和混合模式

如需与不同的基底图层混合,请从:guilabel:合成轨道 中选择正确的轨道。

通过点击 混合模式 下拉列表选择混合模式。

可以通过使用 不透明度 滑块来控制混合并设置关键帧。

若要更好地了解混合模式的工作原理,请阅读 Tips & Tricks How-Tos 章节中关于 Lift/Gamma/Gain (LGG)白平衡 的内容,并熟悉 Color Levels 效果。

混合模式可根据其结果进行分组:

标准 (Normal)

这是标准的混合模式。除非混合图层中存在 Alpha 通道,否则混合图层将完全覆盖基底图层中的所有内容。

Darker (加深)

以下混合模式均会使图像变暗或增强深色:

变暗:

保留混合图层和基底图层之间的最暗颜色。

正片叠底 (相乘):

保留混合图层的深色并使浅色更透明。此模式通过获取混合图层像素的 RGB 通道值(0 到 1 范围),并将其与基图层对应像素的值相乘来实现。生成的颜色始终更暗(纯白色除外,因其每个通道值均为 1)。

颜色加深:

The color from the blend layer is used to darken the base layer, and increases the contrast between the two. This is done by dividing the inverted base layer by the blend layer, and then inverting the result. Blending with white produces no change. Note that when the blend layer is a homogeneous color, this effect is equivalent to changing the black point to the inverted color.

../_images/blending_modes-darken.webp

变暗

../_images/blending_modes-multiply.webp

正片叠底 (相乘)

../_images/blending_modes-color_burn.webp

颜色加深

变亮

以下混合模式可提亮或增强图像中的浅色:

添加 / 添加:

两图层的颜色值会被简单相加(因而得名)。由于这种方式始终会生成与输入颜色(基底图层)相同或更亮的颜色,因此也被称为 加亮

变亮:

保留混合层和基层之间最浅的颜色。仅当混合层的亮度比基层的亮度(或明度)更高时才会进行调亮。

滤色:

在此混合模式中,两个图层的图像颜色值会被反相、相乘,然后再次反相。这是**正片叠底**的相反效果:任一图层中比白色更暗的区域,合成结果会更亮。

颜色减淡:

This blending mode divides the base layer by the inverted blend layer. It lightens the base layer depending on the value of the blend layer: the brighter the blend layer, the more it affects the base layer. If you use white in the blend layer, the color in the base layer will become white; using black in the blend layer does not change the base layer. Note that when the blend layer is a homogeneous color, this blending mode essentially changes the output black point to this color, and (input) white point to the inverted color.

../_images/blending_modes-add.webp

添加

../_images/blending_modes-lighten.webp

变亮

../_images/blending_modes-screen.webp

滤色

../_images/blending_modes-color_dodge.webp

颜色减淡

对比度

以下混合模式通过让两个图层相互配合,能够为图像增添深度和动态效果:

Overlay(覆盖):

此混合模式在基色图层较暗时效果类似于 正片叠底(相乘),在基色图层较亮时则类似于 滤色。换言之:基色图层较亮处,混合图层会变亮;基色图层较暗处,混合图层会变暗;中间调则不影响混合图层。

硬光:

该混合模式是**正片叠底**和**滤色**的结合。其工作方式类似于**叠加**,但使用混合层的亮度,而**叠加**使用的是基底的亮度。

柔光:

类似于**叠加**,该模式利用亮度值对图像进行加深或减淡处理。

../_images/blending_modes-overlay.webp

Overlay(覆盖)

../_images/blending_modes-hard_light.webp

硬光

../_images/blending_modes-soft_light.webp

柔光

比较

以下混合模式会反转白色或浅色:

:

该混合模式从混合层减去基底层,或者反过来以避免出现负数。与黑色(RGB 值为 0,0,0)混合不会产生变化,而与白色(RGB 值为 255, 255, 255)混合会导致图像反相。在编辑过程中,此模式可用于校验具有相似内容的图像对齐情况:若像素值相同则结果为黑色。

排除:

此混合模式本质上与“差值”模式相同,但由于不会反转中间调,因此对比度较低。

../_images/blending_modes-difference.webp

../_images/blending_modes-exclusion.webp

排除

颜色

下列混合模式处理的是 色相饱和度 和亮度 (即 明度,其英文缩写为 HSL):

HSL 色调:

此混合模式保留基层的亮度与饱和度(色度),同时采用混合层的色相。

HSL 饱和度:

此混合模式保留基底层的亮度和色相,同时采用混合层的饱和度。

HSL 颜色:

此混合模式保留基底层的亮度,并从混合层中获取色相与饱和度。

HSL 明度:

此混合模式保留基底层的色相与饱和度,并采用混合层的亮度。

../_images/blending_modes-hsl_hue.webp

色相 (Hue)

../_images/blending_modes-hsl_saturation.webp

饱和度

../_images/blending_modes-hsl_color.webp

颜色

../_images/blending_modes-hsl_luminosity.webp

明度