fix for incorrect opencl device selection
Merge pull request #2464 from KonstantinMatskevich:ocl_stereobm_experiment
Merge branch '2.4' of git://github.com/Itseez/opencv into mog2_weight_bugfix
Merge pull request #1986 from GregoryMorse:patch-3
Superres module enabled for Android. GPU samples build fixed for Android.
WriteStructContext treats state of fs
Fixed an issue with weight assignment causing the resulting GMM weights to be unsorted in the CUDA and OCL versions of BackgroundSubtractorMOG2
added 3-channels support to cv::flip
added 3-channels support to morphology operations
added 3-channels support to cv::setIdentity
update error message
Merge pull request #2493 from ilya-lavrenov:tapi_fnlm
eliminated restriction src[i].channels() == 1 in cv::merge
Merge pull request #2446 from asmorkalov:ocv_implicit_cuda_control
simplified cv::sepFilter2D OpenCL part
1. fix an error in sample code
2. change an external link to maintain consistency with the previous tutorial
Enabled Intel-specific optimizations for HOG detector.
Cut path to CUDA libraries to prevent generation of OpenCVModules.cmake with abs path.
generalized OpenCL version of cv::sepFilter2D; removed some restrictions and added 3-channels support
ocl_calcOpticalFlowPyrLK optimizations

1. decrease branch number in CL code by replacing them into weights
2. decrease local mem pressure in reduce operation by using private variables
3. decrease image sampler pressure by caching data into local memory
4. remove unnecessary sync point on the HOST side.