VideoCapture: copy the captured frame, to avoid dangling Mats

Previously, VideoCapture::retrieve would return a Mat that referenced
the internal IplImage. Since the latter is rewritten every time a
frame is captured, it means that if the user captures two frames in a row,
the first frame would reference nothing. Similar if a user captures a frame,
then destroys the VideoCapture instance.

Note that the other branch of the if isn't affected, since flip allocates
a new Mat.
Overload detectMultiScale API for ocl::haar.
fixed ocl::cornerHarris, ocl::cornerMinEigenVal and their accuracy tests
fixed warnings in OpenCL kernels
Let perf/accuracy test of ocl haar uses detectMultiScale api.
Fix image to be used by perf test.
added ocl::repeat
came back to relative error
ocl: update documentation
ocl: update comments in ocl.hpp
Revert back test image.
Merge pull request #1743 from ilya-lavrenov:ocl_repeat
Merge pull request #1739 from pengx17:2.4_ocl_overload_haar
Merge pull request #1740 from ilya-lavrenov:ocl_corners
Merge pull request #1750 from alalek:ocl_update_documentation
ocl: workaround for subbuffer memory leaks
Android Manager Version++.
Merge pull request #1711 from SpecLad:cap-broken-mat
Cleaned up adaptive bilateral filtering, added support for gaussian interpolation, updated sample and docs
Merge pull request #1757 from asmorkalov:android_manager_version_inc2
Merge pull request #1758 from apavlenko:adaptive_bilateral_filter