add_img

所属分类:Linux/Unix编程
开发工具:C/C++
文件大小:70KB
下载次数:49
上传日期:2012-07-23 23:03:06
上 传 者tornadomeet
说明:  本文主要讲的是怎样将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.)

文件列表:
基础学习笔记之opencv(11):图像混合.docx (10072, 2012-07-23)
add_img (0, 2012-07-23)
add_img\mainwindow.cpp (3144, 2012-07-23)
add_img\add_img.pro (664, 2012-07-23)
add_img\mainwindow.ui (4230, 2012-07-23)
add_img\main.cpp (176, 2012-07-23)
add_img\mainwindow.cpp.autosave (3167, 2012-07-23)
add_img\add_img.pro.user (33041, 2012-07-23)
add_img\mainwindow.h (721, 2012-07-23)

近期下载者

相关文件


收藏者