Itseez/opencv — pull request #1517 by pengx17 (2013-09-27 09:53:39+00:00)
Title: Rewrite ocl::distanceToCenters. 

It supports NORM_L1 distance types now and can use user provided indices of source input.
Also fixed a bug of kmeans where distance pointers should be float instead of double.