Merge 2.4 into master

Original pull requests:

* #1711 from SpecLad:cap-broken-mat
* #1737 from vrabaud:2.4
* #1739 from pengx17:2.4_ocl_overload_haar
* #1740 from ilya-lavrenov:ocl_corners
* #1743 from ilya-lavrenov:ocl_repeat
* #1745 from alalek:ocl_fix_svm_with_blas
* #1749 from SpecLad:update-ignore
* #1750 from alalek:ocl_update_documentation
* #1751 from ilya-lavrenov:ocl_copyMakeBorder_test_fix
* #1752 from alalek:ocl_memory_cleanup_workaround
* #1755 from KonstantinMatskevich:dump_info
* #1756 from alalek:ocl_workaround_memory_leaks_with_subbuffer
* #1757 from asmorkalov:android_manager_version_inc2
* #1758 from apavlenko:adaptive_bilateral_filter
* #1759 from ilya-lavrenov:ocl_distanceToCenters
* #1760 from ilya-lavrenov:ocl_remap_nn
* #1763 from SpecLad:cv-func
* #1771 from kiranpradeep:2.4