Skip to main content
. 2022 Sep 9;22(18):6832. doi: 10.3390/s22186832
Algorithm 1 Line tracking
Construct a line with first two points.
repeat
   if the next point is close to the line then
     add it to the set of points and fit the line to them.
   else
     create a new line with the next two points.
   end if
until no points are remained