View full-text article in PMC Sensors (Basel). 2016 Jul 28;16(8):1182. doi: 10.3390/s16081182 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2016 by the authors; licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC-BY) license (http://creativecommons.org/licenses/by/4.0/). PMC Copyright notice Algorithm 3 Two-level tracking algorithm. 1:function TRACKING(O{t}, O{t−1}) 2: C|O{t}|×|O{t−1}|←0 3: for each object o{t}∈O{t} do 4: for each stixel q{t}∈o do 5: Find correspondence q{t−1} for q{t} 6: Find the object o{t−1}∈O{t−1} associated to q{t−1} 7: if o{t−1} found and ∥o{t}−o{t−1}∥<τmax_obst_dist then 8: C(o{t},o{t−1})←C(o{t},o{t−1})+1 9: end if 10: end for 11: end for 12:end function