Skip to main content
. 2018 Jan 16;18(1):248. doi: 10.3390/s18010248
Algorithm 3: Pseudocode for the practical experiment.
  • (I) Simultaneously capture the images Ii(i=1,2,,n) and record the corresponding inclination data (θi,ϕi),i=1,2,,n.

  • (II) Detect plumb lines in the captured image Ii(i=1,2,,N,N=23n) using the Hough line detection method, and extract the endpoints of each line (xi,yi),(i=1,2,,N).

  • (III) Calculate the inclinometer assembly error Ric using the N images and corresponding information.

  • (IV) Horizontally correct the nN retained images using the calibrated matrix Ric.

  • (V) Detect the endpoints of the horizontal corrected images and calculate the angle with the x-axis on the same line.