Illustration of the X-ray speckle tracking (XST) principle. Top: as in Fig. 1. Middle: as in Fig. 1, with the binary mask replaced by a random phase/absorption mask (dashed outline). Bottom: sub-regions of the measured shadow image (solid black line) are compared with the reference shadow image (dashed blue line) to determine displacements (black arrows).