如何在OpenCV中混合多个图像? [英] How to blend multiple images in OpenCV?

查看:123
本文介绍了如何在OpenCV中混合多个图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一组图像和相关的权重。我想把它们混合在一起。我知道在OpenCV中有一个混合命令来混合两个图像。

I have group of images and associated weights with it. I want to blend them together. I know there is a blend command in OpenCV to blend two images. But how do I blend multiple images together?

推荐答案

简单矩阵运算如下:

What about simple matrix operations, like the following?

blendedImage = weight_1 * image_1 + weight_2 * image_2 + ... + weight_n * image_n

这篇关于如何在OpenCV中混合多个图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆