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.
added epsilon value to weights in the MergeMertens in order to avoid zero weights for pixels from uniformly filled areas of image
added test for correct handling of uniforma areas in the MergeMertens
fixed rotated rectangle (center instead of corner)
Implicit CUDA and OpenCL control for module definition added.

Feature allows to exclude CUDA or OpenCL optimizations at all even CUDA is used
on build. Exclusion of CUDA or OpenCL cut unwanted dependencies.
fix: use "cvAlloc" wrapper function for malloc.
Fixed an issue with weight assignment causing the resulting GMM weights to be unsorted in BackgroundSubtractorMOG2
fix: use "cvAlloc" wrapper function for malloc.
fixed  h / s ranges in histogram_calculation tutorial

literalinclude

literalinclude, dropped :lines:
OpenCV_MODULES_SUFFIX variable added to OpenCVConfig.cmake to enable custom module configurations.
Merge pull request #2458 from asmorkalov:android_cmake_opencv_modules_suffix
Merge pull request #2460 from berak:b_3598_24
Fix problems on Intel HD graphics
minor doc fix
remove intel guard since the code is 2 times faster on AMD too
optimized sep filter
edited sample code for mean/cam sihft and fixed an error
It's will be better
I have changed one sentence in tutorial, making it more understandable
Merge pull request #2026 from pemmanuelviel:giveFurthestPoint