|
Algorithm 2 Global Scale Recovery for RGB images + Pau Ta Norm and RANSAC |
|
Input:
: 3D points from RGB images; : 3D points from depth images |
|
Output: S |
| 1.
|
| 2. For
i = 1→
do
|
| 3. Randomly select 2 points from , compute scale value S |
| 4.
|
| 5. End for
|
| 6. Compute the mean value and the root-mean-square error
|
| 7. S = 0 |
| 8. While Iterations <= MaxIterations do
|
| 9. ,
|
| 10. Randomly select 5 scale values from , compute the mean value
|
| 11. For i = 1→
do
|
| 12. If
then
|
| 13. nInlier = nInlier + 1 |
| 14.
|
| 15. End if
|
| 16. End for
|
| 17. If nInlier >
then
|
| 18. nInlier |
| 19.
|
| 20. End if
|
| 21. End while
|
| 22. Return
|