Pick centers in KMeans++ with a probability proportional to their distance^2, instead of simple distance, to previous centers
Apply to KMeansIndex KMeanspp the same modification as in HierarchicalClusteringIndex
As some processed distances are already ^2, use template to select whether or not we have to ^2 in KMeanspp
Move templates in dist.h in order to share them between KMeansIndex and HierarchicalClusteringIndex classes.
perf report: summary.py: added custom --regressions map
fix condition in CV_OperationsTest::operations1()
Fix typos in old python wrapper documentation(Bug #3628)

Fixed spelling of CV_INTER_LINEAR flag in geometric_transformations.rst
Added cloud shading support - additional normals array is used
Corrected bug #1437. Corrected the cast of two short values from an lParam. lParam contains two signed-short, the position can be negative when another mouse event happens with a mouse_move (mouse_click, etc.)
The Microsoft documentation specifies NOT to use LOWORD and HIWORD macros to extract the x/y positions as it won't work correctly with multiple monitors. See http://msdn.microsoft.com/en-us/library/windows/desktop/ms645607(v=vs.85).aspx.
fix typo in test_cameracalibration
Merge pull request #1 from Itseez/2.4

2.4
remove unused variable in loadFromXML()
remove unused variable in HOGDescriptor::groupRectangles()
remove unused variable in findCorners_caller()
remove unused variable in ocl_moments()
remove unused variable in OCL_PERF_TEST_P()
remove unused variable in TEST_P()
remove unused variables in CV_KDTreeTest_CPP::findNeighbors()
Merge pull request #2591 from Nerei:viz_cloud_shading_support
Merge pull request #2599 from maksqwe:test_calibration_2.4