文件名称:add_img

  • 所属分类:
  • Linux/Unix编程
  • 资源属性:
  • 上传时间:
  • 2012-11-26
  • 文件大小:
  • 70kb
  • 下载次数:
  • 0次
  • 提 供 者:
  • wu***
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容均来自于网络,请自行研究使用

本文主要讲的是怎样将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.
(系统自动生成,下载前可以参看下载内容)

下载文件列表

鍩虹

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org