Rewrite distanceToCenters.
authorpeng xiao <hisenxpress@gmail.com>
Tue, 8 Oct 2013 07:49:40 +0000 (15:49 +0800)
committerKonstantin Matskevich <konstantin.matskevich@itseez.com>
Fri, 25 Oct 2013 11:02:00 +0000 (15:02 +0400)
commit68a8a1116186b9fe77ae31c74120f8989df6f27c
tree429d5b438e1334e4819c42bd13ed3dac862f90e9
parent2279c209c89f32f8a28c3d6c0f2fcc20ac11796b
Rewrite distanceToCenters.
It supports NORM_L1 distance types now and can
use user provided indices.
Also fixed a bug of kmeans where distance pointers should be float instead
 of double.

NORM_L2 changed to NORM_L2SQR, Accuracy and Perf tests are added

added ROI support in accuracy test of distanceToCenters
modules/ocl/doc/ml_machine_learning.rst
modules/ocl/include/opencv2/ocl/ocl.hpp
modules/ocl/perf/perf_imgproc.cpp
modules/ocl/src/kmeans.cpp
modules/ocl/src/opencl/kmeans_kernel.cl
modules/ocl/test/test_kmeans.cpp