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:

committed by
Alexander Alekhin

parent
3146e4a46d
commit
61cbb44539
@@ -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
|
||||||
|
Reference in New Issue
Block a user