MeanshiftGrouping Bugfix (Bug #2685)

Hi, this patch should fix Bug #2685. Please review my pull request carefully.