python去除强光

tech2024-04-19  8

python去除强光

Photoshop’s Hard Light definition is the longest one in the “help” file, and actually gives some helpful information!

Photoshop的Hard Light定义是“帮助”文件中最长的定义,实际上提供了一些有用的信息!

Hard Light: Multiplies or screens the colors, depending on the blend color. The effect is similar to shining a harsh spotlight on the image. If the blend color (light source) is lighter than 50% gray, the image is lightened, as if it were screened. This is useful for adding highlights to an image. If the blend color is darker than 50% gray, the image is darkened, as if it were multiplied. This is useful for adding shadows to an image. Painting with pure black or white results in pure black or white.

硬光:根据混合颜色来加倍或加网颜色。 效果类似于在图像上照射刺眼的聚光灯。 如果混合色(光源)浅于50%的灰色,则图像变亮,就像被屏蔽了一样。 这对于为图像添加高光很有用。 如果混合色比50%的灰度色深,则图像变暗,就好像是倍增的一样。 这对于向图像添加阴影很有用。 用纯黑色或白色绘画会产生纯黑色或白色。

The more of these definitions you read, the more they start to sound the same. The first line sounds almost exactly like the “Overlay” definition. Oh, except that there is a difference:

您阅读的这些定义越多,它们听起来就越相同。 第一行听起来几乎与“叠加”定义完全一样。 哦,除了有区别:

Overlay: Multiplies or screens the colors, depending on the base color.

叠加:根据基本颜色乘以或筛选颜色。

So while Overlay, remember, preserves the “highlights and shadows” of the underlying layer(s), Hard Light does that to the layer set to “Hard Light.” Theoretically, if you have two layers set to either of these blend modes, then switch them and change to the other blend mode, the result should be the same. And they are!

因此,请记住,叠加层会保留基础层的“高光和阴影”,而“硬光”会对设置为“硬光”的层进行处理。 从理论上讲,如果您将两个图层设置为这些混合模式中的任何一个,然后切换它们并更改为另一个混合模式,则结果应相同。 他们是!

Top layer is set to Overlay:

顶层设置为覆盖:

Layers are switched; new top layer is set to Hard Light:

交换层 新的顶层设置为“强光”:

So obviously it doesn’t make much of a difference which one you choose to use when you’re dealing with a two-layer document. But understanding the difference will help you when you have a multi-layer document and you want to apply blending modes to the layers.

因此,显然,在处理两层文档时,选择使用哪一个并没有太大区别。 但是,当您拥有多层文档并且想要将混合模式应用于图层时,了解差异将对您有所帮助。

(Download sample .psd file)

( 下载示例.psd文件 )

Here’s a practical application of Hard Light, as suggested by Photoshop Help: make shadows and highlights.

如Photoshop帮助所建议的,这是Hard Light的实际应用:制作阴影和高光。

I’ll start with a basic rounded button shape:

我将从基本的圆形按钮形状开始:

I create a selection that is the same shape and fill it with a gradient on a new layer. I make sure the gradient doesn’t have pure whites or blacks, but lighter and darker shades of grey:

我创建一个形状相同的选择,并在新图层上填充渐变。 我确保渐变色没有纯白色或黑色,而是浅浅和深浅的灰色阴影:

By setting this new gradient top layer to Hard Light, the button looks like it has a metallic sheen:

通过将此新的渐变顶层设置为“硬光”,该按钮看起来具有金属光泽:

You can apply this same effect to photos or more complex illustrations as well, by using a new, different layer set to Hard Light and painting in different shades of grey — and it preserves the original layer!

您还可以通过将新的不同图层设置为“强光”并以不同的灰色阴影绘画,来将相同的效果应用于照片或更复杂的插图上-并且保留原始图层!

(Download sample button .psd file)

( 下载示例按钮.psd文件 )

Here’s a link to another tutorial that uses Hard Light (plus lots of other blending modes and tricks!) to take a photo and make it look like a watercolor sketch.

这是另一个教程的链接,该教程使用“强光”(以及许多其他混合模式和技巧!)拍摄照片,使其看起来像水彩素描。

翻译自: https://www.sitepoint.com/hard-light-photoshop-blend-mode/

python去除强光

相关资源:高光去除算法
最新回复(0)