changed support for 3-channels, changed CCOEFF
changed CCOEFF cn==1
added dft for CCORR
used vector data types for CCORR cn==1
Move some variables into #ifdef
Change uchar2 to short
added extra condition
replaced factors computation by precomputed values, added kernel for
binary mode
Fixed core for CCORR and SQDIFF. Used float instead of int for CV_8U. Fixed conditions for call dft.
Merge pull request #2874 from vbystricky:ocl_LUTAMDfix
Merge pull request #2887 from ilya-lavrenov:ipp_morph_fix
Updates python feature matching tutorial

The given ORB parameter was misspelled
Merge pull request #2892 from PhilLab:patch-1
removed contrib, legacy and softcsscade modules; removed latentsvm and datamatrix detector from objdetect. removed haartraining and sft apps.
some of the stuff will be moved to opencv_contrib module.
in order to make this PR pass buildbot, please, comment off opencv_legacy, opencv_contrib and opencv_softcascade test runs.
Merge pull request #2786 from ElenaGvozdeva:ocl_matchTemplate
Merge pull request #2881 from mlyashko:moments_opt
put the detection-based tracker back (to objdetect module), so that the Android face detection sample builds fine. The patch by Konstantin Matskevich that adds C++11 threads support has been merged in too. Also, fixed compile error in the doc builder.
removed extra whitespaces
fixed compile warnings on Windows
fixed some more compile warnings on Windows