Structured-light vision (SLV) is a standard approach for inspecting rail wear. However, it is incompetent for dynamic inspection due to the random vibrations in the line laser projector. In this paper, a three-step distortion rectifying method is introduced to address this issue. Given an image with two rail profile stripes, the first step involves parallelity constraint-based establishment of an auxiliary plane whose normal vector is parallel with the rail longitudinal axis. The establishment is only dependent on the intrinsic camera parameters, which improves the robustness of the auxiliary ...