exclude compactPoints and calcWobbleSuppressionMaps from compilation
if they are not needed
This commit is contained in:
parent
6ebc95470b
commit
c9e07bbc95
@ -49,18 +49,15 @@
|
|||||||
|
|
||||||
#include "opencv2/core/private.cuda.hpp"
|
#include "opencv2/core/private.cuda.hpp"
|
||||||
|
|
||||||
|
#if defined(HAVE_OPENCV_CUDAIMGPROC) && defined(HAVE_OPENCV_CUDAOPTFLOW)
|
||||||
#if !defined HAVE_CUDA || defined(CUDA_DISABLER)
|
#if !defined HAVE_CUDA || defined(CUDA_DISABLER)
|
||||||
|
|
||||||
namespace cv { namespace cuda {
|
namespace cv { namespace cuda {
|
||||||
static void compactPoints(GpuMat&, GpuMat&, const GpuMat&) { throw_no_cuda(); }
|
static void compactPoints(GpuMat&, GpuMat&, const GpuMat&) { throw_no_cuda(); }
|
||||||
}}
|
}}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
namespace cv { namespace cuda { namespace device { namespace globmotion {
|
namespace cv { namespace cuda { namespace device { namespace globmotion {
|
||||||
int compactPoints(int N, float *points0, float *points1, const uchar *mask);
|
int compactPoints(int N, float *points0, float *points1, const uchar *mask);
|
||||||
}}}}
|
}}}}
|
||||||
|
|
||||||
namespace cv { namespace cuda {
|
namespace cv { namespace cuda {
|
||||||
static void compactPoints(GpuMat &points0, GpuMat &points1, const GpuMat &mask)
|
static void compactPoints(GpuMat &points0, GpuMat &points1, const GpuMat &mask)
|
||||||
{
|
{
|
||||||
@ -76,7 +73,7 @@ namespace cv { namespace cuda {
|
|||||||
points1 = points1.colRange(0, remaining);
|
points1 = points1.colRange(0, remaining);
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace cv
|
namespace cv
|
||||||
|
@ -50,20 +50,17 @@
|
|||||||
# include "opencv2/cudawarping.hpp"
|
# include "opencv2/cudawarping.hpp"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(HAVE_OPENCV_CUDAWARPING)
|
||||||
#if !defined HAVE_CUDA || defined(CUDA_DISABLER)
|
#if !defined HAVE_CUDA || defined(CUDA_DISABLER)
|
||||||
|
|
||||||
namespace cv { namespace cuda {
|
namespace cv { namespace cuda {
|
||||||
static void calcWobbleSuppressionMaps(int, int, int, Size, const Mat&, const Mat&, GpuMat&, GpuMat&) { throw_no_cuda(); }
|
static void calcWobbleSuppressionMaps(int, int, int, Size, const Mat&, const Mat&, GpuMat&, GpuMat&) { throw_no_cuda(); }
|
||||||
}}
|
}}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
namespace cv { namespace cuda { namespace device { namespace globmotion {
|
namespace cv { namespace cuda { namespace device { namespace globmotion {
|
||||||
void calcWobbleSuppressionMaps(
|
void calcWobbleSuppressionMaps(
|
||||||
int left, int idx, int right, int width, int height,
|
int left, int idx, int right, int width, int height,
|
||||||
const float *ml, const float *mr, PtrStepSzf mapx, PtrStepSzf mapy);
|
const float *ml, const float *mr, PtrStepSzf mapx, PtrStepSzf mapy);
|
||||||
}}}}
|
}}}}
|
||||||
|
|
||||||
namespace cv { namespace cuda {
|
namespace cv { namespace cuda {
|
||||||
static void calcWobbleSuppressionMaps(
|
static void calcWobbleSuppressionMaps(
|
||||||
int left, int idx, int right, Size size, const Mat &ml, const Mat &mr,
|
int left, int idx, int right, Size size, const Mat &ml, const Mat &mr,
|
||||||
@ -80,7 +77,7 @@ namespace cv { namespace cuda {
|
|||||||
ml.ptr<float>(), mr.ptr<float>(), mapx, mapy);
|
ml.ptr<float>(), mr.ptr<float>(), mapx, mapy);
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace cv
|
namespace cv
|
||||||
|
Loading…
x
Reference in New Issue
Block a user