Use mean-shift filter instead of clustering