fixing meanshift, merging centers within a mergewindow size