Merge remote-tracking branch 'upstream/2.4' into LshOrthogonalSubvectors
Issue #2540 : Python bindings for various "detectMultiScale()"
fixed binary compatibility
Bug fixes for filter2D and associated tests.
Merge pull request #2763 from ilya-lavrenov:tapi_perf_norm_relative
added performance test for cv::meanStdDev with mask
Added Haar cascade for russian cars licence plate detection, 16 stages cascade, pretty fast.
Fixed cv::pyrUp performance test
Fix local variable shadowing
Add the ensureSimpleDistance() method to ensure the user the returned distance is not ^2 (the default for L2 for instance)
Merge pull request #2776 from ilya-lavrenov:tapi_meanstddev
Merge pull request #2723 from ilya-lavrenov:tapi_intel_vector_width
Fixed pyopencv_to w/FLANN IndexParams in python3.

The keys() and values() functions on dictionaries in Python 3 no longer
return lists.  pyopencv_to() for flann::IndexParams now iterates over
the dictionary in a way that is version-agnostic.
Fixed MATLAB bridge

MATLAB bridge.hpp was missing definition for Ptr<DenseOpticalFlow>
Merge branch 'master' of https://github.com/Itseez/opencv
Merge pull request #2762 from ilya-lavrenov:ipp_sort
Merge pull request #2772 from akarsakov:ocl_pyramids
Added more info on the data input variable of kmeans
DownhillSolverImpl::innerDownhillSimplex something looks broken here:
Mat_<double> coord_sum(1,ndim,0.0),buf(1,ndim,0.0),y(1,ndim,0.0);
nfunk = 0;
for(i=0;i<ndim+1;++i)
{
y(i) = f->calc(p[i]);
}
y has only ndim elements, while the loop goes over ndim+1
Merge pull request #2742 from StevenPuttemans:feature_3176