added ROI support to ocl::convolve
fixed ocl::copyMakeBorder
rewrote ocl::remap
enabled double in copyMakeBorder kernel
refactored ocl matrix operations accuracy tests
Merge pull request #1642 from alalek:cmake_cleanup_targets
Merge pull request #1641 from jet47:imshow-opengl-fix
Merge pull request #1459 from asmorkalov:ocv_qt_segflt_fix
Merge pull request #1587 from alalek:opencl_khronos_headers
ocl: workaround for msvc11 bug

"#error" requires DOS line endings (or fails with fatal error C1004: unexpected end-of-file found)
See: http://connect.microsoft.com/VisualStudio/feedback/details/794991/c-error-directive-and-unix-line-endings-leads-to-an-unexpected-end-of-file
So replace them to #pragma message.
made more demonstrative message about test fails
Change intrinsic camera matrix initialization

In the function cvInitIntrinsicParams2D the principal point for
normalized image coordinates is set to 0/0. This updates the function
to initialize the principal point at 0.5/0.5.
fix bug in gpu bgsegm sample

create `d_fgimg` matrix before cleaning.
misprint
added reflect, reflect101, replicate, wrap border types to ocl::remap
fixed wrong regex
Copied errorCovPre to errorCovPost. This allows the correct behaviour of the uncertainty to grow when there is missing data for each predict step.
1. Let btvRegWeights to be constant per `process` call.
2. Let Farneback to be the default optical flow method.
3. Fix a timing method bug for ocl path.
4. Remove useless finish operation in farneback
5. Refactor buffer usage.
Merge pull request #1651 from ilya-lavrenov:misprint
missed initialization of kernel size