Skip to main content
. 2021 Sep 29;21(19):6525. doi: 10.3390/s21196525
Algorithm 1 Calculating the center and maximum radius of the palm region
Input: Interior point set mHand and contour point set mContour
Output: The radius R0 and center of the palm center M0
Begin
  Step1: Set R0=0 and M0=[] initially.
   Step2: For one point in mHand, compute its distances from all the points in mContour.
  Step3: Find the minimum distance value, update it as R0 and the corresponding point as M0 if it is larger than R0.
   Step4: Go to Step2 and repeat until all the points in mHand are iterated.
   Step5: Finally, the R0 and M0 are obtained as the radius of the inscribed circle of the palm region and its center.
End