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.
Avoid obtaining several identical dimensions between two LSH sub-vectors by choosing orthogonal sub-vectors.
Fix a heap issue with static on Windows
Merge remote-tracking branch 'upstream/2.4' into LshOrthogonalSubvectors
modified BackgroundSubtractorMOG2::getBackgroundImage so that it can now work with gray-level images.
perf report: summary.py: added custom --regressions map
Bug #3611 Initializing static cv::Mat with cv::Mat::zeros causes segmentation fault fixed.
Merge branch '2.4' of git://github.com/Itseez/opencv into mog2_bgimg_gray
made a performance improvement.
changed the way the mean value for each pixel is assigned in the output image.
Merge pull request #2016 from pemmanuelviel:kmeansppSquareDist
Merge pull request #2544 from alalek:perf_report_regressions
fix for compiling 2.4 opencv with xcode 5.1
Fix for issue #3645 (http://code.opencv.org/issues/3645).
Implement missing features in CvCaptureCAM_VFW class.

Implemented missing CvCaptureCAM_VFW::setProperty() member function (handling CV_CAP_PROP_FRAME_WIDTH, CV_CAP_PROP_FRAME_HEIGHT, CV_CAP_PROP_FPS properties).
Extended CvCaptureCAM_VFW::setProperty()/getProperty() functions to handle also CV_CAP_PROP_FPS property.
Minor refactoring of CvCaptureCAM_VFW class.
Merge pull request #2640 from a-wi:2.4
Documentation - minor fix-ups
Added fisheye camera model
Added test for jacobians