Repository: opencv
Issue: stitching detailed
Labels: priority: low,category: gpu/cuda (contrib),category: stitching

##### System information (version)
opencv version = 3.4.5
Linux Mint 19 Kernel version =  4.15.0-46-generic
gcc compiler 7.3.0
Qt Creator 4.5.2 Based on Qt 5.9.5 (GCC 7.3.0, 64 bit)
CPU: Intel Core i5-7600K
GPU: GeForce GTX 1060, Driver Version: 418.39, CUDA Version: 10.1 

##### Detailed description
When I try to use stitching detailed with GPU support its throwing exception that there is no CUDA devices. Look like very strange because another GPU support algorithms work well.
Here is an example of running rezults:
-- for stitcher:
```
./example_cpp_stitching_detailed --try_cuda yes ../../../../../qtProjetcs/OPENCV/data/cam* --output ../../../../../output.jpg
Finding features...
Features in image #1: 906
Features in image #2: 1130
Features in image #3: 922
Features in image #4: 815
Features in image #5: 1185
Features in image #6: 1349
Features in image #7: 1155
Features in image #8: 846
Finding features, time: 2.73863 sec
Pairwise matchingPairwise matching, time: 0.416088 sec
Initial camera intrinsics #1:
K:
[402.6621092208531, 0, 516.5;
 0, 402.6621092208531, 290.5;
 0, 0, 1]
R:
[-0.0012106675, 0.025132069, 1.2375336;
 -0.00024010938, 0.99085152, 0.0013792274;
 -0.79925025, 0.0042853854, -0.01345437]
Initial camera intrinsics #2:
K:
[402.6621092208531, 0, 516.5;
 0, 402.6621092208531, 290.5;
 0, 0, 1]
R:
[-0.49395916, 0.015130629, 0.62282497;
 -0.00049254886, 0.70598614, 0.00056736136;
 -0.39896688, 0.0027366213, -0.509947]
Initial camera intrinsics #3:
K:
[402.6621092208531, 0, 516.5;
 0, 402.6621092208531, 290.5;
 0, 0, 1]
R:
[-0.49653655, 0.0098318448, 0.0021413246;
 -0.0001232428, 0.49794412, 9.1621878e-05;
 0.0061601428, 0.0028555968, -0.50224859]
Initial camera intrinsics #4:
K:
[402.6621092208531, 0, 516.5;
 0, 402.6621092208531, 290.5;
 0, 0, 1]
R:
[-1.9485691, 0.002625125, -2.4911025;
 0.003152034, 2.7831903, -0.0018687831;
 1.5857258, 0.047782131, -1.960164]
Initial camera intrinsics #5:
K:
[402.6621092208531, 0, 516.5;
 0, 402.6621092208531, 290.5;
 0, 0, 1]
R:
[0.002758041, -0.026730334, -2.4876845;
 0.00086431153, 1.9743909, 5.3480748e-05;
 1.5844687, 0.026593724, 0.010055152]
Initial camera intrinsics #6:
K:
[402.6621092208531, 0, 516.5;
 0, 402.6621092208531, 290.5;
 0, 0, 1]
R:
[0.99693823, -0.009097049, -1.246878;
 -0.00098260806, 1.4026989, 2.9962863e-05;
 0.795367, 0.013093419, 1]
Initial camera intrinsics #7:
K:
[402.6621092208531, 0, 516.5;
 0, 402.6621092208531, 290.5;
 0, 0, 1]
R:
[1, 0, 0;
 0, 1, 0;
 0, 0, 1]
Initial camera intrinsics #8:
K:
[402.6621092208531, 0, 516.5;
 0, 402.6621092208531, 290.5;
 0, 0, 1]
R:
[0.49476224, 0.0006063492, 0.61949396;
 0.0008142544, 0.70039827, 0.00048807176;
 -0.40517563, 0.00061461265, 0.49267703]
Camera #1:
K:
[503.1842986733872, 0, 516.5;
 0, 503.1842986733872, 290.5;
 0, 0, 1]
R:
[-0.00056268368, -0.00087417668, 0.99999946;
 0.00011095451, 0.99999952, 0.00087423931;
 -0.99999988, 0.00011144718, -0.00056258682]
Camera #2:
K:
[503.5501239876086, 0, 516.5;
 0, 503.5501239876086, 290.5;
 0, 0, 1]
R:
[-0.7074759, -0.00098034146, 0.70673674;
 -0.00063396804, 0.99999946, 0.00075250654;
 -0.7067371, 8.4332656e-05, -0.70747626]
Camera #3:
K:
[503.0556313293633, 0, 516.5;
 0, 503.0556313293633, 290.5;
 0, 0, 1]
R:
[-0.99999964, -0.00072452176, -0.0004785601;
 -0.00072449475, 0.9999997, -5.6286342e-05;
 0.00047860108, -5.5938959e-05, -0.99999988]
Camera #4:
K:
[502.9573581509302, 0, 516.5;
 0, 502.9573581509302, 290.5;
 0, 0, 1]
R:
[-0.70678526, 0.00042905656, -0.70742804;
 0.00067780865, 0.99999976, -7.069041e-05;
 0.70742786, -0.00052946294, -0.70678538]
Camera #5:
K:
[503.792948601518, 0, 516.5;
 0, 503.792948601518, 290.5;
 0, 0, 1]
R:
[0.00049857609, -5.4464817e-06, -0.99999982;
 -6.1808154e-05, 0.99999994, -5.4774337e-06;
 0.99999994, 6.1810948e-05, 0.00049857656]
Camera #6:
K:
[503.343950424277, 0, 516.5;
 0, 503.343950424277, 290.5;
 0, 0, 1]
R:
[0.70705438, 0.00012996799, -0.70715916;
 -0.00015053386, 1, 3.327732e-05;
 0.70715922, 8.2923099e-05, 0.70705438]
Camera #7:
K:
[502.5416704969377, 0, 516.5;
 0, 502.5416704969377, 290.5;
 0, 0, 1]
R:
[0.99999994, -1.1823431e-10, 0;
 3.4742698e-10, 1, 4.6566129e-10;
 -4.6566129e-10, 0, 1]
Camera #8:
K:
[502.8878212319973, 0, 516.5;
 0, 502.8878212319973, 290.5;
 0, 0, 1]
R:
[0.70661741, -0.00082619523, 0.70759523;
 0.00071325153, 0.99999958, 0.0004553434;
 -0.70759541, 0.00018294016, 0.70661789]
Warping images (auxiliary)... 
Warping images, time: 0.363623 sec
terminate called after throwing an instance of 'cv::Exception'
  what():  OpenCV(3.4.5) /home/serj/filestorage/GITS/opencv/modules/core/include/opencv2/core/private.cuda.hpp:113: error: (-213:The function/feature is not implemented) The called functionality is disabled for current build or platform in function 'throw_no_cuda'

Aborted (core dumped)
```
-----------------------------------------------------------------------------------------------------------------------
-- for test stitcher:
```
./opencv_test_stitching 
CTEST_FULL_OUTPUT
OpenCV version: 3.4.5
OpenCV VCS version: 3.4.5
Build type: Release
Compiler: /usr/bin/c++  (ver 7.3.0)
Parallel framework: pthreads
CPU features: SSE SSE2 SSE3 *SSE4.1 *SSE4.2 *FP16 *AVX *AVX2 *AVX512-SKX?
Intel(R) IPP version: ippIP AVX2 (l9) 2019.0.0 Gold (-) Jul 24 2018
OpenCL Platforms: 
    NVIDIA CUDA
        dGPU: GeForce GTX 1060 6GB (OpenCL 1.2 CUDA)
Current OpenCL device: 
    Type = dGPU
    Name = GeForce GTX 1060 6GB
    Version = OpenCL 1.2 CUDA
    Driver version = 418.39
    Address bits = 64
    Compute units = 10
    Max work group size = 1024
    Local memory size = 48 KB
    Max memory allocation size = 1 GB 494 MB 816 KB
    Double support = Yes
    Host unified memory = No
    Device extensions:
        cl_khr_global_int32_base_atomics
        cl_khr_global_int32_extended_atomics
        cl_khr_local_int32_base_atomics
        cl_khr_local_int32_extended_atomics
        cl_khr_fp64
        cl_khr_byte_addressable_store
        cl_khr_icd
        cl_khr_gl_sharing
        cl_nv_compiler_options
        cl_nv_device_attribute_query
        cl_nv_pragma_unroll
        cl_nv_copy_opts
        cl_nv_create_buffer
    Has AMD Blas = No
    Has AMD Fft = No
    Preferred vector width char = 1
    Preferred vector width short = 1
    Preferred vector width int = 1
    Preferred vector width long = 1
    Preferred vector width float = 1
    Preferred vector width double = 1
[==========] Running 8 tests from 8 test cases.
[----------] Global test environment set-up.
[----------] 1 test from OCL_SphericalWarperTest
[ RUN      ] OCL_SphericalWarperTest.Mat
[       OK ] OCL_SphericalWarperTest.Mat (291 ms)
[----------] 1 test from OCL_SphericalWarperTest (291 ms total)

[----------] 1 test from OCL_CylindricalWarperTest
[ RUN      ] OCL_CylindricalWarperTest.Mat
[       OK ] OCL_CylindricalWarperTest.Mat (1 ms)
[----------] 1 test from OCL_CylindricalWarperTest (1 ms total)

[----------] 1 test from OCL_PlaneWarperTest
[ RUN      ] OCL_PlaneWarperTest.Mat
[       OK ] OCL_PlaneWarperTest.Mat (1 ms)
[----------] 1 test from OCL_PlaneWarperTest (1 ms total)

[----------] 1 test from OCL_AffineWarperTest
[ RUN      ] OCL_AffineWarperTest.Mat
[       OK ] OCL_AffineWarperTest.Mat (2 ms)
[----------] 1 test from OCL_AffineWarperTest (2 ms total)

[----------] 1 test from MultiBandBlender
[ RUN      ] MultiBandBlender.CanBlendTwoImages
Segmentation fault (core dumped)
```