Algorithm 2 Procedures of Foot Axis Detection |
Input data: contact region Output data: foot axis connecting the centers Variables
-
-
: centroid of the contact region
-
-
: index of the boudnary point in the heel side part
-
-
: i-th boudnary point in the heel side part
-
-
: distance between and
-
-
: smoothed distance between and
-
-
: first derivvatnormal vector of
-
-
: index of the salient point
-
-
: j-th salient point
Procedures
-
Aligning the contact region:
calculate the centroid of contact region and rotate the contact region by using PCA
Defining the heel side part:
-
2.1.
devide the aligned contact region into two parts.
-
2.2.
for each part, find maximum width perpendicular to the first principal axis.
-
2.3.
define a part with a larger maximum width as a heel side part.
-
Calculating the distances from to the boundary points in the heel side part:
for all ,
calculate distance from . Smoothing the distances:
for all ,
compute the smoothed distance using a 1D Gaussian smoothing filter.
-
Deriving the derivative of the smoothed distances:
for all ,
compute the first derivative of the smoothed distance using the central difference method.
-
Detecting the salient points:
for all ,
find the local maximum of which is a zero-crossing point, and define the local maximum as the salient point .
-
Detecting the center of heel:
for all ,
find the farthest point from and define it as the center of heel.
-
Defining the foot axis:
detect the line connecting the detected center of heel and the center of second toe selected by a user.
|