From b24f7ee57c16f9748809ae20583178177b9c1bf6 Mon Sep 17 00:00:00 2001 From: Patrick Tsai Date: Thu, 9 Jan 2014 14:41:44 +0800 Subject: [PATCH] Fix compiler error with Android NDK r8e Original error without the fix: opencv/modules/objdetect/src/cascadedetect.cpp: In member function 'bool cv::CascadeClassifierImpl::ocl_detectSingleScale(const cv::_InputArray&, cv::Size, int, double, cv::Size)': /opencv/modules/objdetect/src/cascadedetect.cpp:1215: error: no matching function for call to 'cv::ocl::Kernel::args(cv::ocl::KernelArg, cv::ocl::KernelArg, cv::ocl::KernelArg, int, cv::ocl::KernelArg, cv::ocl::KernelArg, cv::ocl::KernelArg, cv::Size&, int&, float, cv::Rect&, cv::Size&, cv::CascadeClassifierImpl::)' --- modules/objdetect/src/cascadedetect.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/objdetect/src/cascadedetect.cpp b/modules/objdetect/src/cascadedetect.cpp index 089d9e5..46f2fe1 100644 --- a/modules/objdetect/src/cascadedetect.cpp +++ b/modules/objdetect/src/cascadedetect.cpp @@ -1212,7 +1212,7 @@ bool CascadeClassifierImpl::ocl_detectSingleScale( InputArray _image, Size proce ocl::KernelArg::PtrWriteOnly(ufacepos), // positions processingRectSize, yStep, (float)factor, - normrect, data.origWinSize, MAX_FACES); + normrect, data.origWinSize, (int)MAX_FACES); ok = haarKernel.run(2, globalsize, 0, true); } else if( featureType == FeatureEvaluator::LBP ) @@ -1245,7 +1245,7 @@ bool CascadeClassifierImpl::ocl_detectSingleScale( InputArray _image, Size proce ocl::KernelArg::PtrWriteOnly(ufacepos), // positions processingRectSize, yStep, (float)factor, - data.origWinSize, MAX_FACES); + data.origWinSize, (int)MAX_FACES); ok = lbpKernel.run(2, globalsize, 0, true); } //CV_Assert(ok); -- 2.7.4