Quiz: phase correlation

Short questions to test your understanding. Try each on paper first, then open the answer. Phase correlation divides every A_k\overline{B_k} by its size and takes the inverse FFT.


Q1. Why does the cross-correlation of two micrographs usually have a broad peak?

Which waves are strongest in a typical image, and how fast does their vote change with the shift?

Most of an image’s strength is in the slow waves (smooth brightness changes). Their votes are the largest, and a slow wave still agrees at shifts a few pixels away from the true one. The sum is a wide hill rather than a spike.


Q2. Which property of the Fourier transform makes phase correlation work?

What does a shift do to the sizes and to the phases of the waves?

The shift theorem: shifting an image multiplies each F_k by a phase factor e^{-2\pi i k t/N}; the sizes |F_k| do not change. All the information about the shift is in the phase differences, so the sizes can be thrown away.


Q3. Image B is a perfect circular shift of A by t_0. What does the phase-correlation surface look like?

After normalising, every frequency is a pure phase ramp.

A single spike of height 1 at t_0 and zero everywhere else: the inverse DFT of e^{-2\pi i kt_0/N} for all k is a delta.


Q4. B is A with twice the contrast and 50 grey levels brighter. How does the phase-correlation surface change? And the cross-correlation?

Which B_k does the offset change, and what does the gain do to the phases?

Phase correlation: not at all. The gain multiplies every B_k by 2 (same phase), the offset only changes B_0, and after normalisation R_0 has size 1 whatever B_0 is. Cross-correlation: the surface doubles (gain) and the mean term changes (offset); with the means subtracted, only the factor 2 remains, but an uneven brightness change would move CC’s peak.


Q5. Why does phase correlation suffer more from noise than cross-correlation?

Where in the spectrum is the noise as strong as the signal?

At high frequencies the image signal is weak and the noise is about as strong: the phase differences there are random. Cross-correlation gives these frequencies small votes (they are weak); phase correlation gives them the same vote as the strong low frequencies. Many random votes make a noisy floor that can be higher than the spike.


Q6. Name two ways to make phase correlation more robust to noise.

Change the weights of the frequencies.

Multiply the normalised spectrum by a low-pass weight that fades out the highest frequencies; or normalise only partly, dividing by |A_k\overline{B_k}|^p with 0 < p < 1, which keeps some of the strength information. (Also: an \varepsilon in the denominator, averaging or smoothing the images first.)


Q7. Without a taper, phase correlation of two crops often shows a false peak at shift (0, 0) and a bright cross in the spectrum. Why?

What does the DFT assume happens at the border of a crop?

The DFT treats each crop as periodic, so the left border meets the right one (and top meets bottom), usually with a jump in brightness. These jump lines produce strong waves along the axes (the cross) and they are at the same place in both crops: they do not move with the shift, so they vote for zero shift. A Hann taper brings both crops smoothly to zero at the border and removes the jumps.


Q8. Two tiles give a phase-correlation peak of 0.08 and a peak ratio of 1.05. What do you conclude?

What do the height and the ratio measure?

Do not trust this shift. A ratio of 1.05 means the second-best shift is almost as good; a height of 0.08 means very little shared content (or a lot of noise). Typical reasons: a nearly empty tile, a periodic texture, a very small overlap. A mosaic program should drop this pair or give it a small weight.