Switched insertion of connected components in filterSpecklesImpl
Merge branch '2.4' of https://github.com/Itseez/opencv into Itseez-2.4
Merge branch 'Itseez-2.4' into Feature_3692_2.4
Bugfix #3705: params.setRecordingHint(true) breaks camera preview on Samsung Galaxy S2
Fixes resizeWindow() on OS X (Bug #3200)
Fixes build failure on Mac OS X 10.10 Yosemite Beta due to highgui/src/window_cocoa.mm (Bug #3737)
Revert "Fixes build failure on Mac OS X 10.10 Yosemite Beta due to highgui/src/window_cocoa.mm (Bug #3737)"

This reverts commit 56683e6d112a808fbd51c74917f0c4d9d752f502.
fixed two models, adding xml identifier to correct position
cap_libv4l.cpp depends on both libv4l 1 and 2, so search for both

How this worked before, I do not know.
fixed docs
Merge pull request #2954 from ilya-lavrenov:doc_fix
bug fix 3696
Update facedetect.cpp

Somebody forgot to add curly brackets
Added publication reference
added extra warning about the automatic parameter loading for traincascade application when the param.xml file already exists
Fixed bug in cv::detail::waveCorrect

The function makes wave correction of a stitched panorama.
Earlier it gave wrong results for panorama made from 1 frame.
Merge pull request #2903 from mmaraya:2.4
improving face-rec sample:
* CSV can contain dir-s and wildcards
* save trained model
Doc: fix definition of macro CV_MAKETYPE

At least this is how it's defined in core/types_c.h
Merge pull request #2955 from SpecLad:find-libv4l2