Quiz: brightness constancy and the aperture problem

Short questions to test your understanding. Try each on paper first, then open the answer. Convention: x to the right, y down; the flow (u, v) is in pixels per frame.


Q1. What does the optical flow at a pixel tell you, and how is it different from the single shift found by FFT registration?

One vector per image, or one per pixel?

The flow at a pixel is the vector from where its content is in frame 1 to where it is in frame 2. FFT registration finds one translation for the whole image; optical flow finds a vector for every pixel, so different parts of the image can move differently (a crawling cell over a still background, a rotating embryo).


Q2. In a colour-wheel picture of a flow field, a region is white and another is a saturated blue. What do you know about the two regions? What else do you need to know to give their speeds in pixels per frame?

Saturation encodes speed, but relative to what?

White means (almost) still. Saturated blue means moving fast in the direction that the wheel colours blue (with red = right and the hue running counter-clockwise, blue is roughly down-left on screen). Saturation is relative to the largest speed of the colour scale, so you need the scale (“edge of the wheel = 2 px/frame”) to turn it into a speed.


Q3. Name three situations in fluorescence time-lapse imaging where brightness constancy fails. What does a flow method report there?

Anything that changes the grey value of a point that does not move.

Photobleaching (everything dims each frame), blinking fluorophores, objects moving in or out of the focal plane, a change of illumination or focus drift. A flow method explains every change of grey value as motion, so it reports spurious motion (for example a bias along the slopes of a bleaching spot), or misses true motion.


Q4. In 1D, a pixel has slope I_x = 4 and its value drops by 6 from frame 1 to frame 2. Estimate the motion. What can you say about a pixel with I_x = 0?

u = -I_t / I_x.

I_t = -6, so u = -(-6)/4 = 1.5 pixels per frame to the right. At I_x = 0 (a flat stretch or a peak) the equation reads 0 \cdot u = -I_t: it says nothing about u. Such a pixel needs help from its neighbours.


Q5. In a kymograph (x across, time down) you see a vertical line, a line tilted to the right and two lines crossing. Interpret them.

How far does a feature move per frame on each line?

Vertical: a feature that does not move. Tilted to the right: a feature moving right, with speed = horizontal change per frame (the slope). Crossing lines: two features passing each other (for example vesicles moving in opposite directions along an axon).


Q6. Why can you not measure the motion of a long straight edge from a small window, however carefully you look? What part of the motion can you measure?

Slide the edge along itself.

Sliding the edge along itself does not change any pixel in the window, so motion along the edge is invisible: this is the aperture problem. Only the component across the edge (along the gradient), the normal flow, can be measured.


Q7. In velocity space, pixel A’s constraint is the line u = 2, pixel B’s is v = 1. A third pixel C, on the same edge as A, gives u = 2 again. What is the motion? What if only A and C were available?

Where do the lines cross?

A and B cross at (u, v) = (2, 1); C lies on A’s line and adds nothing new. With only A and C (both on the same edge) all we know is u = 2: any v fits. The point of the line closest to the origin, (2, 0), is the normal flow.


Q8. (math) Derive the optical flow constraint from brightness constancy. Which term is dropped, and when is that safe?

First-order Taylor expansion in x, y and t.

I(x + u, y + v, t + 1) = I(x, y, t). Expanding to first order: I + I_x u + I_y v + I_t = I, so I_x u + I_y v + I_t = 0. Dropped: the second-order terms (\tfrac12 I_{xx}u^2 + I_{xy}uv + \dots). Safe when the motion is small compared with the distance over which the gradient changes (about a pixel at the scale of the image structure); for larger motion the next unit uses warping and pyramids.