|
9 | 9 | #if !defined HAVE_CUDA || defined(CUDA_DISABLER)
|
10 | 10 |
|
11 | 11 | cv::Ptr<cv::cuda::NvidiaOpticalFlow_1_0> cv::cuda::NvidiaOpticalFlow_1_0::create
|
12 |
| - (int, int, NVIDIA_OF_PERF_LEVEL, bool, bool, bool, int, Stream&, Stream&) { |
| 12 | + (cv::Size, NVIDIA_OF_PERF_LEVEL, bool, bool, bool, int, Stream&, Stream&) { |
13 | 13 | throw_no_cuda(); return cv::Ptr<cv::cuda::NvidiaOpticalFlow_1_0>(); }
|
14 | 14 |
|
15 | 15 | cv::Ptr<cv::cuda::NvidiaOpticalFlow_2_0> cv::cuda::NvidiaOpticalFlow_2_0::create(
|
16 |
| - int, int, NVIDIA_OF_PERF_LEVEL, NVIDIA_OF_OUTPUT_VECTOR_GRID_SIZE, NVIDIA_OF_HINT_VECTOR_GRID_SIZE, |
17 |
| - bool, int, cv::Rect*, bool, bool, bool, int, Stream&, Stream&) { |
| 16 | + cv::Size, NVIDIA_OF_PERF_LEVEL, NVIDIA_OF_OUTPUT_VECTOR_GRID_SIZE, NVIDIA_OF_HINT_VECTOR_GRID_SIZE, |
| 17 | + bool, bool, bool, int, Stream&, Stream&) { |
| 18 | + throw_no_cuda(); return cv::Ptr<cv::cuda::NvidiaOpticalFlow_2_0>(); |
| 19 | +} |
| 20 | + |
| 21 | +cv::Ptr<cv::cuda::NvidiaOpticalFlow_2_0> cv::cuda::NvidiaOpticalFlow_2_0::create( |
| 22 | + cv::Size, std::vector<Rect>, NVIDIA_OF_PERF_LEVEL, NVIDIA_OF_OUTPUT_VECTOR_GRID_SIZE, NVIDIA_OF_HINT_VECTOR_GRID_SIZE, |
| 23 | + bool, bool, bool, int, Stream&, Stream&) { |
18 | 24 | throw_no_cuda(); return cv::Ptr<cv::cuda::NvidiaOpticalFlow_2_0>();
|
19 | 25 | }
|
20 | 26 |
|
21 | 27 | #elif !defined HAVE_NVIDIA_OPTFLOW
|
22 | 28 |
|
23 | 29 | cv::Ptr<cv::cuda::NvidiaOpticalFlow_1_0> cv::cuda::NvidiaOpticalFlow_1_0::create(
|
24 |
| - int, int, NVIDIA_OF_PERF_LEVEL, bool, bool, bool, int, Stream&, Stream&) |
| 30 | + cv::Size, NVIDIA_OF_PERF_LEVEL, bool, bool, bool, int, Stream&, Stream&) |
| 31 | +{ |
| 32 | + CV_Error(cv::Error::HeaderIsNull, "OpenCV was build without NVIDIA OpticalFlow support"); |
| 33 | +} |
| 34 | + |
| 35 | +cv::Ptr<cv::cuda::NvidiaOpticalFlow_2_0> cv::cuda::NvidiaOpticalFlow_2_0::create( |
| 36 | + cv::Size, NVIDIA_OF_PERF_LEVEL, NVIDIA_OF_OUTPUT_VECTOR_GRID_SIZE, NVIDIA_OF_HINT_VECTOR_GRID_SIZE, |
| 37 | + bool, bool, bool, int, Stream&, Stream&) |
25 | 38 | {
|
26 | 39 | CV_Error(cv::Error::HeaderIsNull, "OpenCV was build without NVIDIA OpticalFlow support");
|
27 | 40 | }
|
28 | 41 |
|
29 | 42 | cv::Ptr<cv::cuda::NvidiaOpticalFlow_2_0> cv::cuda::NvidiaOpticalFlow_2_0::create(
|
30 |
| - int, int, NVIDIA_OF_PERF_LEVEL, NVIDIA_OF_OUTPUT_VECTOR_GRID_SIZE, NVIDIA_OF_HINT_VECTOR_GRID_SIZE, |
31 |
| - bool, int, cv::Rect*, bool, bool, bool, int, , Stream&, Stream&) |
| 43 | + cv::Size, std::vector<Rect>, NVIDIA_OF_PERF_LEVEL, NVIDIA_OF_OUTPUT_VECTOR_GRID_SIZE, NVIDIA_OF_HINT_VECTOR_GRID_SIZE, |
| 44 | + bool, bool, bool, int, Stream&, Stream&) |
32 | 45 | {
|
33 | 46 | CV_Error(cv::Error::HeaderIsNull, "OpenCV was build without NVIDIA OpticalFlow support");
|
34 | 47 | }
|
|
0 commit comments