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 (曝光融合)的主要内容,如果未能解决你的问题,请参考以下文章