Skip to main content
. 2021 Mar 17;21(6):2106. doi: 10.3390/s21062106
Algorithm 1: Pose estimation by manual selection of corresponding points
Input: a set of N corresponding points selected manually from two cameras.
Output: the best transformation matrix which maximizes the number of inliers.
 Initialization:
  • the best matrix =I

  • the best no. of inliers =0

 Procedure:
  1. Find the nearest feature points to the corresponding points.

  2. Obtain the map points that represent the feature points determined in Step 1.

  3. Randomly select three points out of N points.

  4. Calculate the transformation matrix using Horn’s method.

  5. Calculate the no. of inliers based on the re-projection error.

  6. If no. of inliers > the best no. of inliers, set the best no. of inliers = no. of inliers and the best transformation matrix = the transformation matrix.

  7. If there is a group of points that have not been selected before, go to Step 3. Else, return the best transformation matrix.