Skip to main content
. 2022 Mar 5;22(5):2040. doi: 10.3390/s22052040
Algorithm 2 Strategy 2: Hand position with threshold.
Input: Hand position PhR3, threshold distance λd.
Output: Best point P in the set of Pi, i=116.
 1: Build a k-d tree for all points Pi in the scene.
 2: function ST2(Ph, Pprev)
 3:     Pnext← best from k-d tree.
 4:     if ||(Pnext,Ph)||<λd then
 5:         PPnext
 6:     else
 7:         PPprev
 8:     end if
 9:     PprevP
 10:    return P
 11: end function