Skip to main content

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

▮ CipherChronicle

Image methods Visual illusion

Autostereogram

The autostereogram descends from Béla Julesz’s random-dot stereograms (1959), which showed that the brain perceives depth without recognising any shape, purely by comparing what the two eyes see. In 1979 Christopher Tyler and Maureen Clarke merged the two views into a single image. The Magic Eye books made it a worldwide craze in the 1990s.

How does an autostereogram work?

Look at a pattern that repeats horizontally, wallpaper for instance, letting your eyes diverge as if to focus on a point behind it. Each eye locks onto a different repeat, the brain fuses them, and the pattern seems to float at another depth. That depth depends on the repeat distance: the shorter it is, the nearer the pattern looks.

An autostereogram varies that distance from point to point:

  1. Start from a depth map: a greyscale image where light means near.
  2. Fill the first strip of the image with random dots.
  3. Every following pixel copies the one d pixels to its left, where d is shorter the nearer the point is.
Background (far)  d = 80 px   →  pixel x copies pixel x − 80
Shape (near)      d = 56 px   →  pixel x copies pixel x − 56

What does an autostereogram look like?

Vertical strips of coloured noise that repeat, with slight distortions from one strip to the next. Those distortions draw the shape, but the eye cannot read them flat.

What are the weaknesses of the autostereogram?

Strengths

  • No tool: two eyes are enough.
  • Survives printing and moderate compression.
  • The pattern looks like nothing: the shape cannot be guessed by looking normally.

Weaknesses

  • Not everyone can do it: it takes decent binocular vision and some practice.
  • Simple shapes: depth renders silhouettes and volumes, not detail or small text.
  • Decoded by computation, effortlessly (see below).
  • Scale-sensitive: too large, and the gap between two repeats exceeds the distance between the eyes, making fusion impossible.

How can the shape be seen without managing it by eye?

Two mechanical methods. The first: duplicate the image, shift the copy by one pattern width and display the difference of the two; the shape comes out as outlines. The second, used by the workshop: for every pixel, find the distance at which the pattern repeats best, and turn that distance into a grey level. This rebuilds the depth map.

What variants of the autostereogram exist?

  • Patterned — noise is replaced by a repeated texture or drawing: the Magic Eye style.
  • Cross-eyed — designed for crossing rather than diverging the eyes; depth is then inverted.
  • Animated — a sequence of autostereograms whose shape moves.
  • Wallpaper — no depth map: objects repeated at different pitches float at different depths.

In CipherChronicle

In the workshop the starting image is the depth map: a light shape on a dark background works best. You set the pattern width (40 to 160 pixels); a value near 80 suits a screen. Decryption rebuilds the map by computation: the result is approximate, with slightly eroded outlines, and the same pattern width must be given.

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.