| Algorithm 1: Motion distortion correction based on cubature Kalman filter |
|
Input: Original calibration target scan map, corresponding depth map, camera intrinsic parameters of binocular line matrix scanning system, parameter information of real calibration target, initialization parameter , iteration error threshold , iteration number upper limit . Step I: Image information acquisition phase: 1. Corner detection and image coordinate extraction for the original image of the calibration target. 2. Calculate the 3D coordinate information of the image corner points in the camera coordinate system in the previous step based on the binocular camera intrinsic parameters, the corresponding height map and the initial motion transmission correspondence. 3. Based on the information of the real calibration target corner points, set them in the X _Y plane of the calibration target coordinate system with a point spacing of 30mm and a Z coordinate of 0. Step II: Motion parameter solution stage: 4. Initialize the parameters in parameters . 5. Match the point correspondence between the 3D coordinates of the corner points of the image and the real coordinates of the spatial corner points of the calibration target according to the characteristics of the checkerboard graph. 6. Calculate the rotation and translation relationship between the above corresponding points by using the cubature Kalman filter (Step-I) to obtain the initial value of in . 7. Re-estimate the root mean square error between the 3D coordinates of the image corner points and the updated coordinates of the spatial corner points in the calibration target after rotating and translating them according to . 8. If and the number of iterations , use the cubature Kalman filter (Step-II) to calculate to reduce the . Based on the updated , the 3D coordinate information of the image corners is updated to compensate and go to step 5. 9. If or , output the final of and . Output: Output the final and . |