Fig. 4: Motion-correction algorithm.

a The image of the raw volume (RCM) with motion artifacts. b The method to calculate the relative motion between every two neighbor frames. b-1 and b-2 are two example neighbor raw frames: frame 2833 and frame 2834. b-3 The detected surface position curves of (b-1) and (b-2). b-4 The difference between the two curves in (b-3). b-5 The histogram of the counts of the difference value of (b-4). b-6 data points selected from (b-5) with the x-value (difference of the surface positions) of which fall within the range between −8 and 2. c The curve of the relative motion of every two neighbor frames. d The calculated motion curve, the tread of the motion curve, and the realigned motion curve. e The volume image after motion correction.