The centroid computation uses multiple pixels of variable brightness across the lightstripe to estimate the center of the stripe with sub pixel accuracy.
The baseline light stripe position from a calibration measurement of the back plate alone is subtracted to determine the position of the stripe relative to the reference height.