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 2 Aggregation algorithm. 1:function AGGREGATION(O) 2: O′←∅ 3: o′←∅ 4: for each object oi∈O, from left to right do 5: if |X(oi)−X(oi−1)|>τlateral_aggregation_dist or |Z(oi)−Z(oi−1)|>τdepth_dist then 6: O←O∪o′ 7: o′←∅ 8: end if 9: o′←o′∪o 10: end for 11:end function