Added Ptr<T> support to Java wrappers
Feature based stitching's wave correction bugfix.

When we have similar matrices in input, then algorithm returns matrices
with NaN values.
Several fixes for GStreamer support in OpenCV

- Accurate ASYC task handling for both GStreamer generations.
- Correct video duration request for videos.
- More accurate pipeline destruction.
- Correct color space conversion plugin for GStreamer 1.0.
Code review fixes.
Fix implicit narrowing error in initializer list

The implicit narrowing in the initializer list throws a compiler error for some compilers with C++11 support turned on. The specific error message is: "error: narrowing conversion of 'PyInt_AsLong(((PyObject*)o))' from 'long int' to 'double' inside { }".

Tested on Clang 5.1.0 and Mac OS X 10.9.4.
Doc: Fixing indentation
Fix typo in error for extrinsic parameters
fix: ippiFilterMedianBorder sometimes crash when doing in-place filtering
the samples from the main repository should not depend on modules from opencv_contrib
Merge pull request #3227 from PhilLab:patch-3
Merge pull request #3226 from whoshuu:patch-1
Merge pull request #3215 from dmitrygribanov:dg/stitching-wave-correction-bugfix
Merge pull request #3220 from asmorkalov:ocv_gstreamer
Merge pull request #3229 from the-glu:master
Merge pull request #3231 from vpisarev:reenable_cpp_samples
Merge pull request #3230 from znah:ipp_median_fix
Merge pull request #3180 from mshabunin:java_ptr_support