| Algorithm 2 Localized sequence matching and visual localization. |
|
Inputs: {Cosine distance}; {training and testing images numbers}; {maximum and minimum speed ratios}; {Vehicle speed step-size} {Sequence length}; Outputs: S {Path-line (sequence candidate) score}; for T ← to do ← ; // Local searching matrix. j ← 1; // Path number (sequence candidates number) initialization. for s ← 0 to do for V ← : : do ← 0; for t ← to T do ; // k is a line index in the column vector ; s is the training image number where the path originated in. ← ; // Score S is calculated for each possible path. end for j ← ; Sequence candidate number updating. end for end for ; is the index of minimum score. if Matching validation is positive; Vehicle position ← The matched training image position if Matching validation is negative; Vehicle position ← NaN (no position results) end for |