To construct the Gaussian pyramid for an image, I begin with the original image. This forms the base of the pyramid. I then apply a Gaussian blur filter and downsample, halving its size. The result is the next level of the pyramid. I repeat this process of blurring and downsampling until the desired number of levels have been generated for the pyramid.
By slightly modifying the Gaussian pyramid algorithm, I can produce the Laplacian pyramid simultaneously. After applying a Gaussian blur (but before downsampling) if I subtract the blurred image from the unblurred image, I get the corresponding level of the Laplacian pyramid. Since producing a level of the Laplacian pyramid is an intermediate step when producing the Gaussian pyramid, the Laplacian generally has one less level than its Gaussian counterpart. Below is a Gaussian and Laplacian pyramid for a lovely antelope:
Note that all the levels of the pyramid have been scaled to the same size for ease of viewing. Also, the Laplacian images have been brightened to increase visibility.
Here are the original images:
Here are the original images:
Here are the original images:
The approach I used made the most sense to me, although I'm not sure if it is the best way to produce a hybrid image. I'm am slightly concerned because we have four pyramids amongst the two pictures, but I do not utilize the Gaussian pyramid for the high frequency image and only use the smallest level of the low frequency image's Gaussian. However, I'm happy with my results, and I can reproduce similar images to the examples.