cv2 exposureFusion (曝光融合)

Posted niulang

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了cv2 exposureFusion (曝光融合)相关的知识,希望对你有一定的参考价值。

import cv2
import numpy as np
import sys
 
filenames = [‘./images/memorial0061.jpg‘,
            ‘./images/memorial0062.jpg‘,
            ‘./images/memorial0063.jpg‘,
            ‘./images/memorial0064.jpg‘,
            ‘./images/memorial0065.jpg‘,
            ‘./images/memorial0066.jpg‘,
            ‘./images/memorial0067.jpg‘,
            ‘./images/memorial0068.jpg‘,
            ‘./images/memorial0069.jpg‘,
            ‘./images/memorial0070.jpg‘,
            ‘./images/memorial0071.jpg‘,
            ‘./images/memorial0072.jpg‘,
            ‘./images/memorial0073.jpg‘,
            ‘./images/memorial0074.jpg‘,
            ‘./images/memorial0075.jpg‘,
            ‘./images/memorial0076.jpg‘,]
 
# 读取图片
images = []
for filename in filenames:
    im = cv2.imread(filename)
    images.append(im)
 
# 使用曝光融合进行merge
print(‘Merging using Exposure Fusion...‘)
mergeMertens = cv2.createMergeMertens()
exposureFusion = mergeMertens.process(images)
 
# 保存输出的图片
print(‘Saving output ...  exposure-fusion.jpg‘)
cv2.imwrite(‘exposure-fusion.jpg‘, exposureFusion*255)

  

以上是关于cv2 exposureFusion (曝光融合)的主要内容,如果未能解决你的问题,请参考以下文章

图像增强基于BIMEF算法多曝光融合框架实现微光图像增强

cv2实现图像融合

图像增强基于matlab人工多重曝光融合AMEF图像去雾含Matlab源码 1916期

opencv:运用cv2给视频加水印

OpenCV高手勿入! 半小时学会基本操作 图像裁剪融合

Python,OpenCV图像金字塔cv2.pyrUp(), cv2.pyrDown()