金字塔底部最大的图像是level 0,pyup表示金字塔向上采样,向上采样表示像素变大;pydown表示金字塔向下采样,向下采样表示像素变小。
- Load the two images of apple and orange
- Find the Gaussian Pyramids for apple and orange (in this particular example, number of levels is 6)
- From Gaussian Pyramids, find their Laplacian Pyramids
- Now join the left half of apple and right half of orange in each levels of Laplacian Pyramids
- 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