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 1 Clustering algorithm. 1:function CLUSTERING(Q{t}) 2: O←∅ 3: o←∅ 4: for each stixel qi∈Q, from left to right do 5: if |depth(qi)−depth(qi−1)|>τdepth_dist then 6: if width(o)>τmin_width then 7: o←∅ 8: end if 9: end if 10: o←o∪qi 11: end for 12:end function