Suboptimal case. Dataset 5, 450 frames, “moderate” movement at depth z0 = 20.450 μm. (a) A frame of the original t-stack. (b) The template used for performing motion correction. (c) The template (red channel) superimposed on the MIP (green channel) of the uncorrected t-stack. (d) Hysteresis results of the template superimposed with a frame of the uncorrected t-stack. (e) The template (red channel) superimposed on the MIP of the motion corrected t-stack (green channel) using the baseline algorithm. (f) The template (red channel) superimposed on the MIP of the motion corrected t-stack (green channel) using the presented algorithm. The lack of density of points in various parts of the image leads to a lack of samples in those areas, a lack of SCs to use for correspondences and registration, finally leading to a less smooth deformation field. This causes the MIP to be less sharp, yielding suboptimal results.