Merge 2.4 into master

Original pull requests:

* #1199 from devernay:2.4-qtkit
* #1351 from barisdemiroz:eclipse-java-tutorial
* #1376 from StevenPuttemans:bugfix_3186
* #1386 from asmorkalov:android_abic_check_opt_java
* #1413 from melody-rain:2.4_kalman_filter
* #1417 from ilya-lavrenov:merge_fix
* #1418 from vpisarev:24_ipp_sepfilter_dft
* #1420 from ilya-lavrenov:ocl_perf_hog
* #1421 from ilya-lavrenov:ocl_bilateral
* #1428 from ilya-lavrenov:ocl_pyr
* #1431 from asmorkalov:android_recording_hint
* #1432 from SpecLad:unseq
* #1434 from melody-rain:Added_perf_kalman_cpp
* #1439 from ilya-lavrenov:convertTo
* #1440 from SpecLad:wcast-align
* #1444 from ilya-lavrenov:ocl_test_mog
* #1448 from StevenPuttemans:bugfix_3264
* #1449 from SpecLad:dc1394-095
* #1452 from alalek:fix_cv_export_templates
* #1454 from ilya-lavrenov:ocl_pyrUp
* #1455 from ilya-lavrenov:ocl_test_output
* #1457 from pengx17:2.4_oclsvm
* #1460 from ilya-lavrenov:ocl_divUp
* #1461 from ilya-lavrenov:ocl_dataOperations
* #1464 from StevenPuttemans:bugfix_3186_second
* #1468 from alalek:fix_alignSize_usage
* #1482 from ilya-lavrenov:ocl_setTO
* #1483 from kecsap:nbayes
* #1487 from alalek:fix_add_definitions
* #1489 from melody-rain:2_4_knearest_neighbor
* #1498 from alalek:revert_1487
* #1499 from georgebrindeiro:patch-2
* #1500 from alalek:fix_add_definitions
* #1502 from melody-rain:2.4_Stereo_Match_Const_Space_BP
* #1503 from ilya-lavrenov:ocl_arithm
* #1509 from perping:2.4_docs
* #1511 from apavlenko:shorten_hdr
* #1515 from asmorkalov:ocv_pr_1464_revert
* #1518 from jet47:bug-3291-tbb-install
* #1522 from nghiaho12:latentsvm