Skip to main content

New : Cipher Breaker, the codebreaking assistant, is now on Android Discover

▮ CipherChronicle

Image methods Visual illusion

Hybrid image

The hybrid image was presented in 2006 by Aude Oliva, Antonio Torralba and Philippe Schyns. Their example went round the world: a portrait showing Albert Einstein up close and Marilyn Monroe from a few metres back.

How does a hybrid image work?

An image can be split into two layers:

  • the low frequencies: broad shapes, light and dark areas, what remains after blurring;
  • the high frequencies: edges and fine detail, what blurring removes.

A hybrid image takes the low frequencies of an image A and the high frequencies of an image B:

hybrid = blur(A) + ( B − blur(B) )

The eye does not perceive all frequencies at all distances. Up close, fine detail dominates and grabs attention: you see B. From afar, it becomes too small to resolve and melts into mid-grey: only A’s shapes remain.

What does a hybrid image look like?

Up close, like image B on a slightly cloudy background. Step back, squint, shrink the image to a thumbnail or take off your glasses, and A takes over. The switch is gradual, and there is an in-between distance where the two mix.

What are the weaknesses of a hybrid image?

Strengths

  • No tool: decryption is done by stepping back.
  • Survives everything: compression, printing, screenshots. The information is in the image’s structure, not its bits.
  • Spectacular, hence ideal for a puzzle or a poster.

Weaknesses

  • Nothing is truly hidden: both images are visible; just change distance.
  • Depends on the images chosen: the effect is crisp when the two images are aligned (two faces framed alike); with unrelated images, one bleeds into the other.
  • Tuning depends on display: the boundary between detail and shape must suit the image size and the intended distance.

How can the two images be separated?

With two filters. A strong enough Gaussian blur keeps only A. A high-pass filter (the image minus its blurred version, with contrast raised) keeps only B. Shrinking the image to a small thumbnail amounts to the first.

What variants of the hybrid image exist?

  • Hybrid text — one word readable up close, another from afar: widely used on posters.
  • Three scales — low, mid and high frequencies from three different images.
  • Face illusions — one expression up close (neutral), another from afar (smiling).
  • Image in an image — really hides the second image, in the least significant bits.

In CipherChronicle

The workshop asks for two images: the starting one will be seen from afar, the secret one up close. The detail fineness setting moves the boundary between them. Decryption simulates both distances: from afar blurs the image, up close keeps only the detail, amplified.

Demonstration

The CipherChronicle artwork is encrypted then decrypted right here, in your browser, with the same engine as the workbench. Drag the bar to compare.