My Algorithm recursively generates the next level of each pyramid for both images by applying a Gaussian filter of size [5, 5] to the image and subtracting it from the former to construct the laplacian. Then the Gaussian image is resized to half the size and passed to the function to compute the next level. I used different pyramid sizes and threasholds to decide what Laplacians were added to the hybrid depending on what generated the most believable image given the two source images.
Starting Image | Gray Scale Image | ||||||
---|---|---|---|---|---|---|---|
![]() |
![]() |
||||||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
StartingImage | Gray Scale Image | ||||||
---|---|---|---|---|---|---|---|
![]() |
![]() |
||||||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
By summing the last constructed gaussian with the low frequency Laplacians of one image and the high frequency Laplacians of the other one can construct an image that, when viewed at a close range appears to be one image and at a far range appears to be the other image. This is done recursively in the algorithm, resizing the image bilinearly along the way, from the lowest level of the Gaussian and the lowest levels of the Laplacian up to the highest levels of the other image's Laplacian.
The Cat/Dog image is the most conviencing of the hybrids I created. This is probably because the two images are very similar to begin with. I used a 6-level pyramid and a threashold of 4.
Cat | Dog |
---|---|
![]() |
![]() |
I found that the key to creating the Rhino/Car was alignment. When the rhino fell totally within the space of the car the image was most conviencing.I used a 7-level pyramid and a threashold of 5.
Rhino | Car |
---|---|
![]() |
![]() |
This is the image that I am least pleased with. Nutmeg's whiskers, as they fall outside the boundaries of Derek's face entierly, are always visable. I used a 7-level pyramid and a threashold of 4.
CatDerek | Derek |
---|---|
![]() |
![]() |
This hybrid works for the face, but Einstein's clothes still appear on Marylin. I used a 7-level pyramid and a threashold of 5.
Einstein | Marilyn |
---|---|
![]() |
![]() |
Due to the success of the cat/dog image I decided to try to animals that already appear similar. The similarities between the basic facial structure of the Koala and Panda helped to allign these two images well. I used a 7-level pyramid and a threashold of 5.
Koala | Panda |
---|---|
![]() |
![]() |
![]() |
![]() |
This hybrid creation started out mostly for fun but ended up working fairly well. The one thing I wish was that I could present the image from a distance first and then up close as seeing Darth Tater and then seeing him with his toung out would be more comial. I used a 8-level pyramid and a threashold of 4.
Happy Darth Tater | Darth Tater |
---|---|
![]() |
![]() |
![]() |
![]() |