1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-19 02:16:34 +08:00

Merge pull request #2336 from czgdp1807:issue-2333

* corrected scope of CV_Error()

* removed the return statement
This commit is contained in:
Gagandeep Singh
2019-11-10 15:04:18 +05:30
committed by Alexander Alekhin
parent 3146e4a46d
commit 61cbb44539

View File

@@ -12,7 +12,10 @@ Ptr<NvidiaOpticalFlow_1_0> cv::cuda::NvidiaOpticalFlow_1_0::create(int, int, int
#elif !defined HAVE_NVIDIA_OPTFLOW #elif !defined HAVE_NVIDIA_OPTFLOW
CV_Error(cv::Error::HeaderIsNull, "Nvidia Optical Flow headers not found. Make sure cmake downloads it properly"); Ptr<NvidiaOpticalFlow_1_0> cv::cuda::NvidiaOpticalFlow_1_0::create(int, int, int, NVIDIA_OF_PERF_LEVEL, bool, bool)
{
CV_Error(cv::Error::HeaderIsNull, "OpenCV was build without NVIDIA OpticalFlow support");
}
#else #else
@@ -653,4 +656,4 @@ Ptr<cv::cuda::NvidiaOpticalFlow_1_0> cv::cuda::NvidiaOpticalFlow_1_0::create(
bEnableCostBuffer, bEnableCostBuffer,
gpuId); gpuId);
} }
#endif #endif