When a cluster is empty for KMeans, it's better to give it the point from another cluster j that is the furthest one from center j.
fixing bug #3345
Improved documentation for neural network
'master'-like Haar perf test
refactoring the test as it should be in 2.4
Added throwing exception when saving untrained SVM model
adding `finish()` to flush CL queue, renaming the test to match 'master' branch
Merge pull request #2133 from apavlenko:2.4-perf_haar
Merge pull request #2145 from andreasBihlmaier:2.4
fixing bug #3345. don't use BORDER_ISOLATED alone. it should be combined with some border type
Fixed cvtColor alpha channel docs
Merge pull request #2143 from Daniil-Osokin:fix_docs_cvt_color_alpha_channel
Revert "fixed bug #3319"

See 092f916 for explanation.

This reverts commit 4f9c081dc313f8fdfee3f0a4572779ae13e27e40.
Re-fix bug #3319 with less side effects.
Removed an unnecessary workaround for matrix-to-vector copyTo.
Added a test for matrix-to-vector copy and convert.
Merge pull request #2140 from Daniil-Osokin:fix_saving_untrained_svm_model
Merge pull request #2159 from SpecLad:1xN
Fixed bug #3489: The code assumed that two global variables would be constructed in a particular order, but global variable initialization order is compiler-dependent.
Merge pull request #2171 from djetter99:fix_static_init_order