Skip to main content
. 2018 Jan 16;18(1):248. doi: 10.3390/s18010248
Algorithm 2: Pseudocode of the perturbation simulation experiment.
  For i=1:5 (i is the number of groups in the experiment)
    For j=1:5 (j is the number of images taken in each group)
      For k=1:10 (k is the duration over which Gaussian noise was added)
        (I) Obtain image Ij, and record values of the inclinometer (θj,ϕj).
        (II) Detect plumb lines in the image Ij using the Hough line detection method.
        (III) Add Gaussian noise to the endpoints of detected lines (xnj,k,ynj,k).
      End
    End
     (IV) Calculate the inclinometer assembly error Rici, 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.