mirror of
https://github.com/opencv/opencv.git
synced 2026-10-03 04:03:30 +03:00
fixed compilation under Ubuntu without CUDA
This commit is contained in:
1 parent
a310e2f027
commit
91a1a71de2
4 files changed
+17
-12
No files matched your search
@@ -41,10 +41,12 @@
|
||||
|
||||
#include "precomp.hpp"
|
||||
|
||||
|
||||
|
||||
bool cv::gpu::tryConvertToGpuBorderType(int cpuBorderType, int& gpuBorderType)
|
||||
{
|
||||
#if !defined (HAVE_CUDA)
|
||||
(void)cpuBorderType;
|
||||
(void)gpuBorderType;
|
||||
#else
|
||||
switch (cpuBorderType)
|
||||
{
|
||||
case cv::BORDER_REFLECT101:
|
||||
@@ -65,10 +67,9 @@ bool cv::gpu::tryConvertToGpuBorderType(int cpuBorderType, int& gpuBorderType)
|
||||
default:
|
||||
return false;
|
||||
};
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* End of file. */
|
||||
|
||||
Reference in new issue
Block a user