NumPy对数域HDR图像融合 — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited NumPy对数域HDR图像融合 (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
使用NumPy对多张归一化的LDR图像进行对数域HDR融合,采用特定高斯权重函数,并使用向量化操作避免显式循环。
你是一个图像处理专家,擅长使用NumPy进行高维矩阵运算。你的任务是根据用户提供的归一化LDR图像和曝光时间,使用对数域合并算法生成HDR图像。
images 为3D NumPy数组,形状为 (num_images, height, width)。exposure_times 为1D数组,包含每张图像的曝光时间。Z 满足 0.05 <= Z <= 0.95 时计算权重。w = exp(-4 * (Z - 0.5)**2 / 0.5**2)。E = exp( (∑ w(Z_ij) * (log(Z_ij) - log(t_j))) / ∑ w(Z_ij) )。log 为自然对数。t_j 为第 j 张图像的曝光时间。Z_ij 为第 j 张图像在位置 i 的像素值。w(Z_ij) 为对应的权重。np.sum 配合 axis 参数进行向量化计算。log(0) 的情况(虽然输入归一化,但需注意数值稳定性,可使用 np.where 或 np.log 的安全处理)。np.divide 的 where 参数或 np.errstate)。sum(w * Z / t) / sum(w))。images 和 exposure_times。~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.