文件名称:add_img
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:70kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
本文主要讲的是怎样将2幅图片叠加,就像电影里面有时候出现的镜头一样,2幅图片可以按照不同比例重叠,当然这里主要是利用opencv自带的函数addWeighted().参考资料为opencv自带tutiol及其代码。
开发环境:ubuntu12.04+opencv2.4.2+Qt4.8.2+QtCreator2.5.
实验功能:
单击Open image1按钮,打开第1幅图片并在左边显示出来。
单击Open image2按钮,打开第2幅图片并在中间显示出来。
在Alpha栏输入第1幅图片在图片混合时所占的比例,这时Beta栏的值也会跟着改变,因为2着的比例之和为1.0.
同理,在Beta栏中输入第2幅图片在图片混合时所占的比例,这时Alpha栏里的值也会改变。
单击Add image按钮,在软件右边那栏可以看到图片混合的效果。-In this paper, is how to overlay the two pictures, like a film which sometimes appear in the lens, two images can overlap in different proportions, of course, mainly using the the the opencv own function addWeighted () reference materials for opencv comes tutiol its code. Development environment: ubuntu12.04+opencv2.4.2+Qt4.8.2+QtCreator2.5 experimental feature: Click Open image1 button, open an image and displayed on the left. Click Open image2 button to open the two pictures and show up in the middle. In the proportion of the alpha field, enter a picture in the picture is mixed, then the value of the Beta Bar will change with it, because 2 the proportion of 1.0. Similarly, enter two pictures in the Beta column proportion in the picture is mixed, this time Alpha column values will change. Click the Add image button in the software the right column you can see the picture mixed effect.
开发环境:ubuntu12.04+opencv2.4.2+Qt4.8.2+QtCreator2.5.
实验功能:
单击Open image1按钮,打开第1幅图片并在左边显示出来。
单击Open image2按钮,打开第2幅图片并在中间显示出来。
在Alpha栏输入第1幅图片在图片混合时所占的比例,这时Beta栏的值也会跟着改变,因为2着的比例之和为1.0.
同理,在Beta栏中输入第2幅图片在图片混合时所占的比例,这时Alpha栏里的值也会改变。
单击Add image按钮,在软件右边那栏可以看到图片混合的效果。-In this paper, is how to overlay the two pictures, like a film which sometimes appear in the lens, two images can overlap in different proportions, of course, mainly using the the the opencv own function addWeighted () reference materials for opencv comes tutiol its code. Development environment: ubuntu12.04+opencv2.4.2+Qt4.8.2+QtCreator2.5 experimental feature: Click Open image1 button, open an image and displayed on the left. Click Open image2 button to open the two pictures and show up in the middle. In the proportion of the alpha field, enter a picture in the picture is mixed, then the value of the Beta Bar will change with it, because 2 the proportion of 1.0. Similarly, enter two pictures in the Beta column proportion in the picture is mixed, this time Alpha column values will change. Click the Add image button in the software the right column you can see the picture mixed effect.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
