Hogwarts, Dewarped.

2002: fisheye footage from the set of Harry Potter and the Chamber of Secrets, dewarped frame by frame with an in-house algorithm for the film’s DVD, through iPIX.

Case study · Doo Interactive · iPIX · 2002

Dewarping a Hogwarts fisheye

Fisheye footage from a film set, turned into a view anyone could watch.

In 2002 Doo Interactive received, through iPIX (Internet Pictures Corporation), fisheye footage shot on the set of Harry Potter and the Chamber of Secrets for the film’s DVD. The task: convert every frame from a raw fisheye circle into a correct, navigable view, using a dewarping algorithm written in-house.

Fisheye, as filmedDewarped, as viewed

One shot from the Chamber set. Left: the frames as filmed. Right: the same frames dewarped, panning as a viewer would. Rebuilt in 2026 from the original 2002 files.

1,068

frames in a single shot

11 June 2002

filmed on set, take 7

Aug 2002

dewarped in-house

Source

Potter 2, the DVD

The first frame of the shot carries the slate: “Potter 2 – The DVD”, Warner, slate C4-5, take 7, 11 June 2002. The set is the Chamber: the stone walkway, the serpent heads, the opening in the ceiling.

Frame 1: the slate inside the fisheye circle.
Frame 1: the slate inside the fisheye circle.
Frame 100, dewarped into a normal view.
Frame 100, dewarped into a normal view.
Method

Running the lens backwards

A fisheye lens compresses half a sphere of space into a circle. Dewarping inverts that projection for every output pixel. In 2002 this ran entirely on the processor, without GPUs or off-the-shelf libraries.

STEP 1
Find the circle
Locate the centre and radius of the fisheye image in the frame. Every frame of a shot shares them.
STEP 2
Trace back
For each pixel of the flat output view, compute its direction in space, then its angle from the lens axis.
STEP 3
Map to the circle
That angle gives a distance from the centre of the fisheye circle; the direction gives the position around it.
STEP 4
Sample and repeat
Read the colour there, interpolate between neighbours, and do it again for every pixel of every frame.
Context

The iPIX partnership

iPIX grew out of a NASA-funded programme to guide robots with fisheye cameras. Doo Interactive worked with it from 1998: Biron and Lascaux, the nuclear sites, Accor. iPIX went bankrupt in 2006; the image processing know-how built on its projects carried on.

Harry Potter and the Chamber of Secrets © Warner Bros. Shown as a record of the work.

Scroll to Top