Repository: opencv
Issue: CUDA_Legacy/NCV.HypothesesFiltration  test failed
Labels: category: gpu/cuda (contrib)


##### System information (version)
- OpenCV => 4.1.0
- Operating System / Platform => Windows 64 Bit
- Compiler => Visual Studio 2015
- CUDA RT => 8.0
- CUDA driver version => 10.0

[----------]
[ GPU INFO ]    Run on OS Windows x64.
[----------]
*** CUDA Device Query (Runtime API) version (CUDART static linking) ***

Device count: 1

Device 0: "GeForce GTX 1050"
  CUDA Driver Version / Runtime Version          10.0 / 8.0
  CUDA Capability Major/Minor version number:    6.1
  Total amount of global memory:                 4096 MBytes (4294967296 bytes)
  GPU Clock Speed:                               1.49 GHz
  Max Texture Dimension Size (x,y,z)             1D=(131072), 2D=(131072,65536), 3D=(16384,16384,16384)
  Max Layered Texture Size (dim) x layers        1D=(32768) x 2048, 2D=(32768,32768) x 2048
  Total amount of constant memory:               65536 bytes
  Total amount of shared memory per block:       49152 bytes
  Total number of registers available per block: 65536
  Warp size:                                     32
  Maximum number of threads per block:           1024
  Maximum sizes of each dimension of a block:    1024 x 1024 x 64
  Maximum sizes of each dimension of a grid:     2147483647 x 65535 x 65535
  Maximum memory pitch:                          2147483647 bytes
  Texture alignment:                             512 bytes
  Concurrent copy and execution:                 Yes with 5 copy engine(s)
  Run time limit on kernels:                     Yes
  Integrated GPU sharing Host Memory:            No
  Support host page-locked memory mapping:       Yes
  Concurrent kernel execution:                   Yes
  Alignment requirement for Surfaces:            Yes
  Device has ECC support enabled:                No
  Device is using TCC driver mode:               No
  Device supports Unified Addressing (UVA):      Yes
  Device PCI Bus ID / PCI location ID:           1 / 0
  Compute Mode:
      Default (multiple host threads can use ::cudaSetDevice() with device simultaneously)

deviceQuery, CUDA Driver = CUDART, CUDA Driver Version  = 10.0, CUDA Runtime Version = 8.0, NumDevs = 1

##### Detailed description

[==========] Running 12 tests from 5 test cases.
[----------] Global test environment set-up.
... 
...
[ RUN      ] CUDA_Legacy/NCV.HypothesesFiltration/0, where GetParam() = GeForce GTX 1050
unknown file: error: C++ exception with description "OpenCV(4.1.0) C:\developing\opencv_contribute\opencv_contrib\modules\cudalegacy\src\NCV.cpp:745: error: (-213:The function/feature is not implemented) This functionality requires objdetect module in function 'groupRectangles'
" thrown in the test body.
[  FAILED  ] CUDA_Legacy/NCV.HypothesesFiltration/0, where GetParam() = GeForce GTX 1050 (873 ms)
...
...
[----------] Global test environment tear-down
[==========] 12 tests from 5 test cases ran. (17081 ms total)
[  PASSED  ] 11 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] CUDA_Legacy/NCV.HypothesesFiltration/0, where GetParam() = GeForce GTX 1050

##### Steps to reproduce
Build with cudalegacy module but without objdetect module.

Question:
1. Can we disable this test? 
2. Should we disable this test while objdetect module is not checked?