资源简介
本算法适用于多帧曝光融合代码,同时不同帧间存在着运动物体,比起传统的HDR,可以极大的避免由于运动物体的出现带来的鬼影效果,同时又很强的自适应去噪效果,很适合工程实现,
代码片段和文件信息
from __future__ import division
import cv2
import numpy as np
from gausskern import getNeighborhoodDiffscalcTempStdDevGetKernel
def astaFilter(frame_window targetnums):
“““Takes as argument a frame_window which has the current video frame and its surrounding
frames. The targetnums argument is a 2d array containing the target number of pixels to
combine for each pixel in the frame. The function first runs the temporal filter to average
the values of each pixel across time. Then for each pixel it will run the spatial
filter for that pixel at a strength inversely proportional to how many pixels
could be combined with the temporal filter. Finally it returns a 2d array of all the pixels
for a given video frame calculated by this filter“““
frame = frame_window.getMainF
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-10-04 22:13 virtualexposures-master\
文件 260 2016-10-04 22:13 virtualexposures-master\README
文件 10027 2016-10-04 22:13 virtualexposures-master\astaFilter.py
文件 5539 2016-10-04 22:13 virtualexposures-master\fr
文件 5106 2016-10-04 22:13 virtualexposures-master\gausskern.py
文件 835096 2016-10-04 22:13 virtualexposures-master\results.pdf
文件 1332 2016-10-04 22:13 virtualexposures-master\tonemap.py
- 上一篇:计算机组成原理简单模型机实验
- 下一篇:电子万年历设计毕业论文
评论
共有 条评论