|
Algorithm 1: Horizontal image correction using the inclinometer. |
Rotate the camera coordinate system to the inclinometer coordinate system using the rotation matrix in Equation (1);
Rotate the inclinometer coordinate system to the geodetic coordinate system according to the direction cosine matrix in Equation (6);
Rotate the geodetic coordinate system to the horizontal camera coordinate system by rotating 90° around the -axis, the rotation matrix can be indicated as
-
According to homography matrix theory in multiple-view geometry [ 9], the homography matrix between two images can be simplified as
where is the intrinsic parameter matrix of the camera, which can be expressed as
where and are focal lengths in and directions, and and are principal points.
is the rotation matrix from image 1 to image 2
Substitute Equation (10) into Equation (8); the homography matrix can be written as
Substitute Equations (7) and (9) into Equation (11); we have
Finally, the horizontal corrected image can be obtained by multiplying the homography matrix with the original image.
|