A calibration apparatus includes a motion assembly, which is arranged to move an imaging probe through a calibration point having known coordinates. The imaging probe includes an ultrasound transducer and a position sensor for acquiring concurrently a first sequence of ultrasound images and a second sequence of position measurements. The apparatus further includes a marking circuit, which is arranged to mark an ultrasound image that is acquired by the ultrasound transducer in the first sequence when the imaging probe is at the calibration point. A processor is arranged to calibrate a time offset between the first and second sequences by associating the marked ultrasound image in the first sequence with a position measurement in the second sequence whose coordinates match the coordinates of the calibration point.