The paper considers principles of operation of the optical electronic devices designed for operational high-precision control of the railway rails rolling surface straightness. It provides a description of the functional scheme proposed by the authors of the optical electronic devices of the triangulation type with structured illumination, where the rolling surface straightness is assessed based on analyzing the images of the rail cross sections registered by a linear camera. A technical solution is proposed that could significantly increase control and reliability of its results, as well as ensure image registration of the rail cross sections, where the distance between them is not exceeding 1 mm with the measurement car speed of 180 km/h. Mathematical expressions were obtained to study the optical electronic devices proposed scheme influence on the threshold sensitivity of control over the points' position along the rail rolling surface. To reduce the control results error, methods of the coordinates' subpixel refinement of the structured illuminated peaks registered coordinates were used. In the course of numerical experiments, the error root-mean-square deviation dependence in measuring the rail surface points' coordinates on the signal-to-noise ratio and the structured illumination peaks width values was studied. Requirements are formulated to components of the triangular type optical electronic devices, which could be introduced in design and development of the high-precision equipment for operational control of the railway track rolling stock straightness