基于金字塔的图像融合

该博客介绍了如何使用金字塔技术进行图像融合。首先加载苹果和橙子的图像,然后分别构建它们的高斯金字塔,接着在每个层级的拉普拉斯金字塔中合并苹果的左半部分和橙子的右半部分。最后,通过这些联合图像金字塔重建出融合后的原始图像。
摘要由CSDN通过智能技术生成

金字塔底部最大的图像是level 0,pyup表示金字塔向上采样,向上采样表示像素变大;pydown表示金字塔向下采样,向下采样表示像素变小。




orapple.jpg

  1. Load the two images of apple and orange
  2. Find the Gaussian Pyramids for apple and orange (in this particular example, number of levels is 6)
  3. From Gaussian Pyramids, find their Laplacian Pyramids
  4. Now join the left half of apple and right half of orange in each levels of Laplacian Pyramids
  5. Finally from this joint image pyramids, reconstruct the original image.

import cv2
import numpy as np,sys
A = cv2.imread( 'apple.jpg')
B = cv2.imread( 'orang
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值