Skip to content
Projects

Hybrid Images

CS180 / October 2024

Images that change appearance at different viewing distances using frequency separation.

  • Python
  • OpenCV
  • NumPy
  • SciPy
  • Matplotlib
Hybrid Images interface

Overview

Images that change what you see depending on how far away you are. Up close you see one thing, step back and you see something completely different. It works because your eyes process high and low frequency information differently.

Approach

Gaussian low-pass filtering extracts coarse structure from one image. Laplacian high-pass filtering extracts fine detail from another. Blend them together and you get an image that morphs when you squint or step back.

Extended this to multiresolution blending using Laplacian pyramids for seamless composites - blending two images along an arbitrary boundary without visible seams. FFT analysis helped visualize and tune the frequency cutoffs for each image pair.