Unity3D图像后处理特效——Contrast Enhance

The Contrast Enhance image effect enhances the impression of contrast for a given camera. It uses the well-knownunsharp mask process available in image processing applications.

对于一个特定的相机,对比度增强特效可以增强其生成图片的对比度感知。它主要使用了图像处理领域中著名的非锐化掩膜方法来达到这种效果。

 

When blurring is applied to an image, the colors of adjacent pixels are averaged to some extent, resulting in a reduction of sharp edge detail. However, areas of flat color remain relatively unchanged. The idea behind unsharp masking is that an image is compared with a blurred (or "unsharp") version of itself. The difference in brightness between each pixel in the original and the corresponding pixel in the blurred image is an indication of how much constrast the pixel has against its neighbours. The brightness of that pixel is then changed in proportion to the local contrast. A pixel which is darker after blurring must be brighter than its neighbours, so its brightness is further increased while if the pixel is darker after blurring then it will be darkened even more. The effect of this is to increase contrast selectively in areas of the image where the detail is most noticeable. The parameters of unsharp masking are the pixel radius over which colors are blurred, the degree to which brightness will be altered by the effect and a "threshold" of contrast below which no change of brightness will be made.

当向一张图片是用模糊化特效时,临近像素间的颜色将会被平均,这也就减少了锐利边缘的细节信息,但拥有平滑颜色过度的区域则相对地保持不变。非锐化掩膜的核心思想这是将一张图片与其自身的模糊化效果相比较,对于同一个像素来说,原始图像中的颜色与其在模糊化后图像的颜色差异,则表示该像素在其临域内具有多大的对比度。这样,就可以根据局部对比度来成比例地改变该像素的亮度。如果一个像素在模糊化后变得比原来暗,那说明该像素要比其临域内其他像素的颜色要亮,所以增强后其颜色会更亮,同理,如果该像素模糊后比原来亮,则增强后会变得更加暗。这种特效可以用来有选择地增加图像的对比度,特别是针对那些需要关注的细节。非锐化掩膜方法的参数有像素的模糊半径,增强系数以及对比度阈值,在此阈值之下的亮度将不受影响。

 

As with the other image effects, this effect is only available in Unity Pro and you must have the Pro Standard Assets installed before it becomes available.

跟其他图像特效一样,该特效只能用于Unity Pro版本中年,而且你在使用它之前需要安装Pro Standard Assets

 

 

没有对比度增强特效

使用对比度增强特效

 

Properties        特性

Intensity

强度

The intensity of contrast enhancement.

对比度增强的强度

Threshhold

阈值

The constrast threshold below which no enhancement is applied.

对于阈值以下的像素将不进行增强处理

Blur Spread

模糊半径

The radius over which contrast comparisons are made.

在该半径下将进行对比度的比较

Hardware support            硬件支持

This effect requires a graphics card with pixel shaders (2.0) or OpenGL ES 2.0. PC: NVIDIA cards since 2003 (GeForce FX), AMD cards since 2004 (Radeon 9500), Intel cards since 2005 (GMA 900); Mobile: OpenGL ES 2.0; Consoles: Xbox 360, PS3.

该特效要求在拥有像素着色器(3.0)或OpenGL ES2.0的显卡上进行。PC2004年以后的NVIDIA卡(GeForce6),2005年以后的AMD卡(Radeon X1300),2006年以后的Intel卡(GMA X3000);移动设备:OpenGL ES2.0;控制台:Xbox360PS3

 

All image effects automatically disable themselves when they can not run on end-users graphics card.

所有图像特效如果不能在用户终端的显卡上运行时则会自动关闭。
  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
提供的源码资源涵盖了Java应用等多个领域,每个领域都包含了丰富的实例和项目。这些源码都是基于各自平台的最新技术和标准编写,确保了在对应环境下能够无缝运行。同时,源码中配备了详细的注释和文档,帮助用户快速理解代码结构和实现逻辑。 适用人群: 适合毕业设计、课程设计作业。这些源码资源特别适合大学生群体。无论你是计算机相关专业的学生,还是对其他领域编程感兴趣的学生,这些资源都能为你提供宝贵的学习和实践机会。通过学习和运行这些源码,你可以掌握各平台开发的基础知识,提升编程能力和项目实战经验。 使用场景及目标: 在学习阶段,你可以利用这些源码资源进行课程实践、课外项目或毕业设计。通过分析和运行源码,你将深入了解各平台开发的技术细节和最佳实践,逐步培养起自己的项目开发和问题解决能力。此外,在求职或创业过程中,具备跨平台开发能力的大学生将更具竞争力。 其他说明: 为了确保源码资源的可运行性和易用性,特别注意了以下几点:首先,每份源码都提供了详细的运行环境和依赖说明,确保用户能够轻松搭建起开发环境;其次,源码中的注释和文档都非常完善,方便用户快速上手和理解代码;最后,我会定期更新这些源码资源,以适应各平台技术的最新发展和市场需求。 所有源码均经过严格测试,可以直接运行,可以放心下载使用。有任何使用问题欢迎随时与博主沟通,第一时间进行解答!

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值