From 821de70182f9045a92dc2f704aa5e72ce3754da9 Mon Sep 17 00:00:00 2001 From: Vincent Rabaud Date: Wed, 2 Oct 2024 15:04:47 +0200 Subject: [PATCH] Add missing implementations. --- modules/cudaarithm/src/arithm.cpp | 2 ++ modules/cudaarithm/src/element_operations.cpp | 5 +++++ modules/cudaarithm/src/reductions.cpp | 4 +++- modules/cudaimgproc/src/connectedcomponents.cpp | 4 ++-- modules/cudaimgproc/src/moments.cpp | 3 ++- 5 files changed, 14 insertions(+), 4 deletions(-) diff --git a/modules/cudaarithm/src/arithm.cpp b/modules/cudaarithm/src/arithm.cpp index 30cf225e154..6d2a145d610 100644 --- a/modules/cudaarithm/src/arithm.cpp +++ b/modules/cudaarithm/src/arithm.cpp @@ -54,6 +54,8 @@ void cv::cuda::mulAndScaleSpectrums(InputArray, InputArray, OutputArray, int, fl void cv::cuda::dft(InputArray, OutputArray, Size, int, Stream&) { throw_no_cuda(); } +Ptr cv::cuda::createDFT(Size, int) { throw_no_cuda(); return Ptr(); } + Ptr cv::cuda::createConvolution(Size) { throw_no_cuda(); return Ptr(); } #else /* !defined (HAVE_CUDA) */ diff --git a/modules/cudaarithm/src/element_operations.cpp b/modules/cudaarithm/src/element_operations.cpp index 1ad3c17c40f..6f810357b13 100644 --- a/modules/cudaarithm/src/element_operations.cpp +++ b/modules/cudaarithm/src/element_operations.cpp @@ -84,8 +84,13 @@ void cv::cuda::magnitude(InputArray, InputArray, OutputArray, Stream&) { throw_n void cv::cuda::magnitudeSqr(InputArray, OutputArray, Stream&) { throw_no_cuda(); } void cv::cuda::magnitudeSqr(InputArray, InputArray, OutputArray, Stream&) { throw_no_cuda(); } void cv::cuda::phase(InputArray, InputArray, OutputArray, bool, Stream&) { throw_no_cuda(); } +void cv::cuda::phase(InputArray, OutputArray, bool, Stream&) { throw_no_cuda(); } void cv::cuda::cartToPolar(InputArray, InputArray, OutputArray, OutputArray, bool, Stream&) { throw_no_cuda(); } +void cv::cuda::cartToPolar(InputArray, OutputArray, OutputArray, bool, Stream&) { throw_no_cuda(); } +void cv::cuda::cartToPolar(InputArray, OutputArray, bool, Stream&) { throw_no_cuda(); } void cv::cuda::polarToCart(InputArray, InputArray, OutputArray, OutputArray, bool, Stream&) { throw_no_cuda(); } +void cv::cuda::polarToCart(InputArray, InputArray, OutputArray, bool, Stream&) { throw_no_cuda(); } +void cv::cuda::polarToCart(InputArray, OutputArray, bool, Stream&) { throw_no_cuda(); } #else diff --git a/modules/cudaarithm/src/reductions.cpp b/modules/cudaarithm/src/reductions.cpp index b70a128558f..0ceb3d26a14 100644 --- a/modules/cudaarithm/src/reductions.cpp +++ b/modules/cudaarithm/src/reductions.cpp @@ -69,8 +69,10 @@ void cv::cuda::countNonZero(InputArray, OutputArray, Stream&) { throw_no_cuda(); void cv::cuda::reduce(InputArray, OutputArray, int, int, int, Stream&) { throw_no_cuda(); } -void cv::cuda::meanStdDev(InputArray, Scalar&, Scalar&) { throw_no_cuda(); } +void cv::cuda::meanStdDev(InputArray, OutputArray, InputArray, Stream&) { throw_no_cuda(); } void cv::cuda::meanStdDev(InputArray, OutputArray, Stream&) { throw_no_cuda(); } +void cv::cuda::meanStdDev(InputArray, Scalar&, Scalar&, InputArray) { throw_no_cuda(); } +void cv::cuda::meanStdDev(InputArray, Scalar&, Scalar&) { throw_no_cuda(); } void cv::cuda::rectStdDev(InputArray, InputArray, OutputArray, Rect, Stream&) { throw_no_cuda(); } diff --git a/modules/cudaimgproc/src/connectedcomponents.cpp b/modules/cudaimgproc/src/connectedcomponents.cpp index e2e2bde057d..3f6ac944491 100644 --- a/modules/cudaimgproc/src/connectedcomponents.cpp +++ b/modules/cudaimgproc/src/connectedcomponents.cpp @@ -9,8 +9,8 @@ using namespace cv::cuda; #if !defined (HAVE_CUDA) || defined (CUDA_DISABLER) -void cv::cuda::connectedComponents(InputArray img_, OutputArray labels_, int connectivity, - int ltype, ConnectedComponentsAlgorithmsTypes ccltype) { throw_no_cuda(); } +void cv::cuda::connectedComponents(InputArray, OutputArray, int, int, ConnectedComponentsAlgorithmsTypes) { throw_no_cuda(); } +void cv::cuda::connectedComponents(InputArray, OutputArray, int, int) { throw_no_cuda(); } #else /* !defined (HAVE_CUDA) */ diff --git a/modules/cudaimgproc/src/moments.cpp b/modules/cudaimgproc/src/moments.cpp index a9c8beb9f83..40ab9414ad7 100644 --- a/modules/cudaimgproc/src/moments.cpp +++ b/modules/cudaimgproc/src/moments.cpp @@ -27,8 +27,9 @@ cv::Moments cv::cuda::convertSpatialMoments(Mat spatialMoments, const MomentsOrd } #if !defined (HAVE_CUDA) || defined (CUDA_DISABLER) + int cv::cuda::numMoments(MomentsOrder) { throw_no_cuda(); return 0; } Moments cv::cuda::moments(InputArray src, const bool binary, const MomentsOrder order, const int momentsType) { throw_no_cuda(); } - void spatialMoments(InputArray src, OutputArray moments, const bool binary, const MomentsOrder order, const int momentsType, Stream& stream) { throw_no_cuda(); } + void cv::cuda::spatialMoments(InputArray src, OutputArray moments, const bool binary, const MomentsOrder order, const int momentsType, Stream& stream) { throw_no_cuda(); } #else /* !defined (HAVE_CUDA) */ #include "cuda/moments.cuh"