| Algorithm 2: Pseudocode of the perturbation simulation experiment. |
| For ( is the number of groups in the experiment) For ( is the number of images taken in each group) For ( is the duration over which Gaussian noise was added) (I) Obtain image , and record values of the inclinometer . (II) Detect plumb lines in the image using the Hough line detection method. (III) Add Gaussian noise to the endpoints of detected lines . End End (IV) Calculate the inclinometer assembly error , and decompose the matrix into Euler angles. End (V) Calculate the average of the Euler angles as the final assembly error for each group. (VI) Calculate the mean and the standard deviation of the Euler angle. |