APP下载

图层蒙版在半透明图像处理中的应用

2015-05-30王建军

计算机时代 2015年8期

王建军

摘 要: 分析了Photoshop蒙版工具的工作原理,特别对图层蒙版的工作原理进行了阐述,说明了图层蒙版具备的特点,得出了其适用于半透明图像处理的结论。给出了半透明图像处理的两种典型应用的效果范例,对两个范例进行了操作剖析,呈现了过程与结果,印证了之前对图层蒙版原理的分析。从全新的角度提出了半透明图像处理的新思路与解决方法。

关键词: 图层蒙版; 合成; 半透明; 透明化

中图分类号:TP37 文献标志码:A 文章编号:1006-8228(2015)08-36-03

Application of layer mask in translucent image processing

Wang Jianjun

(Academy of Fine Arts of Leshan Normal University, Leshan, Sichuan 614000, China)

Abstract: The working principle of the mask technology, especially the layer mask is analyzed in this paper. The characteristics of the layer mask are described and the conclusion is obtained that it is suitable for the translucent image processing. The example of two kinds of typical translucent image processing effects and the operation sequence is given, which confirms the principle analysis before for the layer mask. From a new perspective, a new idea and method is presented to process the translucent image.

Key words: layer mask; synthesis; translucent; transparent

0 引言

在静态或动态(视频)图像的处理过程中,往往需要对图片选择部分区域后再处理,尤其在图像合成里,选取工具、钢笔,快速选取,橡皮擦,画笔等工具在选取图像部分区域的时候被普遍应用。但是这些工具在遇到半透明图像处理时就不太适用,处理起来非常困难,效果也不理想。因此,针对半透明图像,可以考虑选择蒙版工具来进行处理,如此往往能起到事半功倍的效果。

1 蒙版基础

蒙版在很多图像处理技术中都是一个必须的重要工具。简单来说,蒙版(在Flash也叫遮罩)就好似在一副画之前放了一个遮挡物,在Photoshop中这个遮挡物默认为黑色,透过这个遮挡物看不到相应大小的画面,即使看得见也是以另一种颜色呈现的[1]。也就是说画面的这个区域被保护起来了而不能被修改。而这个遮挡物之外的其他部分是可以看得见的,也是可以修改的。因此,蒙版之外的区域往往就自动成为选区。充当遮挡物的蒙版一般为黑色,表示无法透视,这个遮挡物也可以是白色的。……

登录APP查看全文