Skip to main content
. 2018 May 29;18(6):1749. doi: 10.3390/s18061749
Algorithm 2: Extract the vector of scanned road surface.
INPUT: road line segments sets RLi, ϑit and ti.
OUTPUT: Vti
Θ= (set Θ inital value is null set)
01 if ti=t0
02  t=max(lenit)
03  Vti=vt
04 else
05  for all lit in RLi
06   if ϑit<ϕmax and lenit>Lmin
07   Θ=Θ{SpitL,EpitL}
08   end
09  end
10  Get a^,b^ using the least square from Θ
11  choose two endpoints p1L, p2L from line:y=a^x+b^
12  Convert p1L, p2L to FW combining(3),and get p1W, p2W
13  Vti=p2Wp1W
14 end
return Vti