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
fixed two models, adding xml identifier to correct position
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.
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 #2972 from apavlenko:24_face_rec_sample
Merge pull request #2971 from ruslo:docfix
Merge pull request #2957 from cambyse:2.4
Merge pull request #2959 from StevenPuttemans:add_notice_loaded_parameters
Merge pull request #2780 from hbadino:Feature_3692_2.4
Merge pull request #2967 from LeonidBeynenson:bugfix_wave_correction_wrong_result
Merge pull request #2966 from PhilLab:patch-2
Merge pull request #2965 from soulslicer:patch-2
Merge pull request #2909 from StevenPuttemans:bugfix_profileface_model