Algorithm 1 False matches rejection combining depth information + RANSAC |
Input:
: feature matches set in image space; : 3D points corresponding to feature matches; : distance threshold in object space for RANSAC iterations; : distance threshold in image space |
Output: number of inliers: n2DInlier, Inliers: F =
|
1.
|
2. For
i = 1→n do
|
3. Iterations = 0, , G =
|
4. While Iterations <= MaxIterations do
|
5. n3DInlier = 0 |
6. Randomly select 5 feature points in current feature matches from , compute the mean value of 3D coordinates
|
7. For
do
|
8. If
<
then
|
9. n3DInlier = n3DInlier + 1 |
10.
|
11. End if
|
12. End for
|
13. If n3DInlier >
then
|
14. n3DInlier |
15.
|
16. End if
|
17. End while
|
18.
|
19. n2DInlier = 0,
|
20. For j = 1→m do
|
21. Let backproject to j-th Frame, obtain the backprojected image point
|
22. If
<
then
|
23.
|
24.
|
25. End if
|
26. End for
|
27. If
then
|
28.
|
29. End if
|
30. End for
|
31. Return
|