Skip to main content
. 2016 Sep 27;16(10):1589. doi: 10.3390/s16101589
Algorithm 3 Rigid Transformation Recovery
Input: Ps={Pi|1iN}: scaled 3D points from RGB images; PD={Pi|1iN}: 3D points from depth images
Output: best transformation estimation (R, t)
1. nInliermax=0, Iterations = 0, F=
2. While Iterations <= MaxIterations do
3.  nInliers=0, Inliers=
4.  Randomly select 5 pairs of corresponding points from {Ps} and {PD}, use Besl’s method to compute the rigid transformation R’, t
5.  For Pi, Pi{Ps}, {PD} do
6.   If Pi(RPsi+t)<Threshold then
7.    nInlier = nInlier + 1
8.    Inliers=Inliers{i}
9.   End if
10.  End for
11.  If nInlier > nInliermax then
12.   nInliermax= nInlier
13.   F=Inliers
14  End if
15.  Iterations = Iterations + 1
16. End while
17. (R,t)=minR,tiFRPsi+tPDi2
18 Return (R, t)