Pick centers in KMeans++ with a probability proportional to their distance^2, instead of simple distance, to previous centers
Apply to KMeansIndex KMeanspp the same modification as in HierarchicalClusteringIndex
As some processed distances are already ^2, use template to select whether or not we have to ^2 in KMeanspp
Move templates in dist.h in order to share them between KMeansIndex and HierarchicalClusteringIndex classes.
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.
fix tiled read for reading tiles into partial blocks in image
update test CascadeClassifier
Absolute path to tests in opencv_run_app_tests.sh fixed.
Merge pull request #2285 from KonstantinMatskevich:ocl_test_cascade2.4
Merge pull request #2292 from asmorkalov:ocv_deb_tests_script_path_fix
Multiple improvements in OpenCV examples build.

EMBED_CUDA and FORCE_EMBED_OPENCV flags added to cmake macro add_android_project;
INSTALL_CUDA_LIBRARIES option added to OpenCV.mk
opencv_dynamicuda library installation with enabled OPENCV_INSTALL_MODULES flag fixed;
CUDA initialization apportunity added to OpenCVLoader.initDebug();
Tutorial-4-CUDA sample reimplemented with static OpenCV and CUDA initialization.
Merge pull request #2276 from asmorkalov:android_install_cuda
Revert "disable gpu Subtract_Array test:"

This reverts commit e91bf95d5832e87aa70240c50f0bf7fcc587e8c8.
Revert "disable gpu CvtColor.*2HSV tests:"

This reverts commit 952027a8536215a5e4308c79a59308c6b3426354.
fix epsilons for several gpu tests
Revert "disable CUDA generalized Hough Transform"

This reverts commit 33d42b740c6fe938b63a0b25c9ad51741aba48c3.
dynamicuda module disabled in OpenCv.mk for all arches except armeabi-v7a.
fix nonfree module compilation without CUDA
Merge pull request #2300 from asmorkalov:android_no_cuda_not_armeabiv7a
Implicit testdata directory permissions setup added.