/external/opencv3/modules/core/test/ocl/ |
D | test_image2d.cpp | 14 namespace ocl { namespace 18 if (cv::ocl::haveOpenCL()) in TEST() 21 EXPECT_FALSE(cv::ocl::Image2D::canCreateAlias(um)); in TEST() 29 if (cv::ocl::haveOpenCL()) in TEST() 32 EXPECT_ANY_THROW(cv::ocl::Image2D image(um)); in TEST() 40 if (cv::ocl::haveOpenCL()) in TEST() 42 const cv::ocl::Device & d = cv::ocl::Device::getDefault(); in TEST() 51 … EXPECT_NO_THROW(isFormatSupported = cv::ocl::Image2D::isFormatSupported(CV_8U, 1, false)); in TEST() 52 EXPECT_NO_THROW(canCreateAlias = cv::ocl::Image2D::canCreateAlias(um)); in TEST() 56 EXPECT_NO_THROW(cv::ocl::Image2D image(um, false, true)); in TEST() [all …]
|
/external/opencv3/modules/photo/src/ |
D | fast_nlmeans_denoising_opencl.hpp | 42 bool doubleSupport = ocl::Device::getDefault().doubleFPConfig() > 0; in ocl_calcAlmostDist2Weight() 66 ocl::Kernel k("calcAlmostDist2Weight", ocl::photo::nlmeans_oclsrc, in ocl_calcAlmostDist2Weight() 69 ocl::typeToStr(depth), ocl::typeToStr(CV_MAKE_TYPE(depth, hn)), in ocl_calcAlmostDist2Weight() 70 ocl::typeToStr(CV_32SC(hn)), ocl::convertTypeStr(depth, CV_32S, hn, buf), in ocl_calcAlmostDist2Weight() 76 k.args(ocl::KernelArg::PtrWriteOnly(almostDist2Weight), almostMaxDist, in ocl_calcAlmostDist2Weight() 78 ocl::KernelArg::Constant(den, (hn == 3 ? 4 : hn)*sizeof(FT)), WEIGHT_THRESHOLD); in ocl_calcAlmostDist2Weight() 88 int ctaSize = ocl::Device::getDefault().isIntel() ? CTA_SIZE_INTEL : CTA_SIZE_DEFAULT; in ocl_fastNlMeansDenoising() 110 ocl::typeToStr(type), ocl::typeToStr(CV_32SC(cn)), in ocl_fastNlMeansDenoising() 111 ocl::typeToStr(CV_32SC(hn)), in ocl_fastNlMeansDenoising() 112 depth == CV_8U ? ocl::typeToStr(CV_32SC(hn)) : in ocl_fastNlMeansDenoising() [all …]
|
/external/opencv3/modules/imgproc/src/ |
D | templmatch.cpp | 63 ocl::Device dev = ocl::Device::getDefault(); in extractFirstChannel_32F() 64 int pxPerWIy = (dev.isIntel() && (dev.type() & ocl::Device::TYPE_GPU)) ? 4 : 1; in extractFirstChannel_32F() 66 …ocl::Kernel k("extractFirstChannel", ocl::imgproc::match_template_oclsrc, format("-D FIRST_CHANNEL… in extractFirstChannel_32F() 67 … ocl::typeToStr(depth), cn, pxPerWIy)); in extractFirstChannel_32F() 76 …return k.args(ocl::KernelArg::ReadOnlyNoSize(image), ocl::KernelArg::WriteOnly(result)).run( 2, gl… in extractFirstChannel_32F() 83 size_t wgs = ocl::Device::getDefault().maxWorkGroupSize(); in sumTemplate() 91 ocl::Kernel k("calcSum", ocl::imgproc::match_template_oclsrc, in sumTemplate() 93 ocl::typeToStr(type), ocl::typeToStr(depth), ocl::typeToStr(wtype), cn, in sumTemplate() 94 ocl::convertTypeStr(depth, wdepth, cn, cvt), in sumTemplate() 102 ocl::KernelArg srcarg = ocl::KernelArg::ReadOnlyNoSize(src), in sumTemplate() [all …]
|
D | sumpixels.cpp | 342 bool doubleSupport = ocl::Device::getDefault().doubleFPConfig() > 0; in ocl_integral() 351 ocl::typeToStr(sdepth), tileSize, in ocl_integral() 354 ocl::Kernel kcols("integral_sum_cols", ocl::imgproc::integral_sum_oclsrc, build_opt); in ocl_integral() 362 kcols.args(ocl::KernelArg::ReadOnly(src), ocl::KernelArg::WriteOnlyNoSize(buf)); in ocl_integral() 367 ocl::Kernel krows("integral_sum_rows", ocl::imgproc::integral_sum_oclsrc, build_opt); in ocl_integral() 375 krows.args(ocl::KernelArg::ReadOnlyNoSize(buf), ocl::KernelArg::WriteOnly(sum)); in ocl_integral() 382 bool doubleSupport = ocl::Device::getDefault().doubleFPConfig() > 0; in ocl_integral() 390 ocl::typeToStr(sdepth), ocl::typeToStr(sqdepth), in ocl_integral() 394 ocl::Kernel kcols("integral_sum_cols", ocl::imgproc::integral_sum_oclsrc, build_opt); in ocl_integral() 403 …kcols.args(ocl::KernelArg::ReadOnly(src), ocl::KernelArg::WriteOnlyNoSize(buf), ocl::KernelArg::Wr… in ocl_integral() [all …]
|
D | featureselect.cpp | 94 int dbsize = ocl::Device::getDefault().maxComputeUnits(); in ocl_goodFeaturesToTrack() 95 size_t wgs = ocl::Device::getDefault().maxWorkGroupSize(); in ocl_goodFeaturesToTrack() 102 ocl::Kernel k("maxEigenVal", ocl::imgproc::gftt_oclsrc, in ocl_goodFeaturesToTrack() 111 ocl::KernelArg eigarg = ocl::KernelArg::ReadOnlyNoSize(eig), in ocl_goodFeaturesToTrack() 112 dbarg = ocl::KernelArg::PtrWriteOnly(maxEigenValue), in ocl_goodFeaturesToTrack() 113 maskarg = ocl::KernelArg::ReadOnlyNoSize(mask), in ocl_goodFeaturesToTrack() 114 cornersarg = ocl::KernelArg::PtrWriteOnly(corners_buffer); in ocl_goodFeaturesToTrack() 125 ocl::Kernel k2("maxEigenValTask", ocl::imgproc::gftt_oclsrc, in ocl_goodFeaturesToTrack() 139 ocl::Kernel k("findCorners", ocl::imgproc::gftt_oclsrc, in ocl_goodFeaturesToTrack() 144 ocl::KernelArg eigarg = ocl::KernelArg::ReadOnlyNoSize(eig), in ocl_goodFeaturesToTrack() [all …]
|
D | blend.cpp | 101 ocl::Kernel k("blendLinear", ocl::imgproc::blend_linear_oclsrc, in ocl_blendLinear() 102 format("-D T=%s -D cn=%d -D convertToT=%s", ocl::typeToStr(depth), in ocl_blendLinear() 103 cn, ocl::convertTypeStr(CV_32F, depth, 1, cvt))); in ocl_blendLinear() 110 k.args(ocl::KernelArg::ReadOnlyNoSize(src1), ocl::KernelArg::ReadOnlyNoSize(src2), in ocl_blendLinear() 111 ocl::KernelArg::ReadOnlyNoSize(weights1), ocl::KernelArg::ReadOnlyNoSize(weights2), in ocl_blendLinear() 112 ocl::KernelArg::WriteOnly(dst)); in ocl_blendLinear()
|
D | deriv.cpp | 670 const ocl::Device dev = ocl::Device::getDefault(); in ocl_Laplacian5() 693 int loc_mem_cn = dev.vendorID() == ocl::Device::VENDOR_NVIDIA && cn == 3 ? 4 : cn; in ocl_Laplacian5() 728 ocl::kernelToStr(kernelX, wdepth, "KERNEL_MATRIX_X").c_str(), in ocl_Laplacian5() 729 ocl::kernelToStr(kernelY, wdepth, "KERNEL_MATRIX_Y").c_str(), in ocl_Laplacian5() 730 ocl::convertTypeStr(sdepth, wdepth, cn, cvt[0]), in ocl_Laplacian5() 731 ocl::convertTypeStr(wdepth, ddepth, cn, cvt[1]), in ocl_Laplacian5() 733 … ocl::typeToStr(sdepth), ocl::typeToStr(ddepth), ocl::typeToStr(wdepth), in ocl_Laplacian5() 734 ocl::typeToStr(CV_MAKETYPE(sdepth, cn)), in ocl_Laplacian5() 735 ocl::typeToStr(CV_MAKETYPE(ddepth, cn)), in ocl_Laplacian5() 736 ocl::typeToStr(CV_MAKETYPE(wdepth, cn)), in ocl_Laplacian5() [all …]
|
D | clahe.cpp | 57 cv::ocl::Kernel _k("calcLut", cv::ocl::imgproc::clahe_oclsrc); in calcLut() 59 bool is_cpu = cv::ocl::Device::getDefault().type() == cv::ocl::Device::TYPE_CPU; in calcLut() 66 cv::ocl::Kernel k("calcLut", cv::ocl::imgproc::clahe_oclsrc, opts); in calcLut() 82 idx = k.set(idx, cv::ocl::KernelArg::ReadOnlyNoSize(src)); in calcLut() 83 idx = k.set(idx, cv::ocl::KernelArg::WriteOnlyNoSize(dst)); in calcLut() 96 cv::ocl::Kernel k("transform", cv::ocl::imgproc::clahe_oclsrc); in transform() 113 idx = k.set(idx, cv::ocl::KernelArg::ReadOnlyNoSize(src)); in transform() 114 idx = k.set(idx, cv::ocl::KernelArg::WriteOnlyNoSize(dst)); in transform() 115 idx = k.set(idx, cv::ocl::KernelArg::ReadOnlyNoSize(lut)); in transform() 357 …bool useOpenCL = cv::ocl::useOpenCL() && _src.isUMat() && _src.dims()<=2 && _src.type() == CV_8UC1; in apply()
|
D | hough.cpp | 671 ocl::Device dev = ocl::Device::getDefault(); in ocl_makePointsList() 675 ocl::Kernel pointListKernel("make_point_list", ocl::imgproc::hough_lines_oclsrc, in ocl_makePointsList() 680 pointListKernel.args(ocl::KernelArg::ReadOnly(src), ocl::KernelArg::WriteOnlyNoSize(pointsList), in ocl_makePointsList() 681 ocl::KernelArg::PtrWriteOnly(counters)); in ocl_makePointsList() 694 ocl::Device dev = ocl::Device::getDefault(); in ocl_fillAccum() 699 ocl::Kernel fillAccumKernel; in ocl_fillAccum() 707 fillAccumKernel.create("fill_accum_global", ocl::imgproc::hough_lines_oclsrc, in ocl_fillAccum() 712 …fillAccumKernel.args(ocl::KernelArg::ReadOnlyNoSize(pointsList), ocl::KernelArg::WriteOnlyNoSize(a… in ocl_fillAccum() 718 fillAccumKernel.create("fill_accum_local", ocl::imgproc::hough_lines_oclsrc, in ocl_fillAccum() 724 …fillAccumKernel.args(ocl::KernelArg::ReadOnlyNoSize(pointsList), ocl::KernelArg::WriteOnlyNoSize(a… in ocl_fillAccum() [all …]
|
D | canny.cpp | 103 const ocl::Device &dev = ocl::Device::getDefault(); in ocl_Canny() 141 ocl::Kernel with_sobel("stage1_with_sobel", ocl::imgproc::canny_oclsrc, in ocl_Canny() 143 cn, ocl::memopTypeToStr(_src.depth()), in ocl_Canny() 144 ocl::convertTypeStr(_src.depth(), CV_32F, cn, cvt), in ocl_Canny() 145 ocl::typeToStr(CV_MAKE_TYPE(CV_32F, cn)), in ocl_Canny() 153 with_sobel.args(ocl::KernelArg::ReadOnly(src), in ocl_Canny() 154 ocl::KernelArg::WriteOnlyNoSize(map), in ocl_Canny() 175 ocl::Kernel without_sobel("stage1_without_sobel", ocl::imgproc::canny_oclsrc, in ocl_Canny() 182 without_sobel.args(ocl::KernelArg::ReadOnlyNoSize(dx), ocl::KernelArg::ReadOnlyNoSize(dy), in ocl_Canny() 183 ocl::KernelArg::WriteOnly(map), in ocl_Canny() [all …]
|
D | corner.cpp | 407 ocl::Kernel k(format("sobel%d", aperture_size).c_str(), ocl::imgproc::covardata_oclsrc, in extractCovData() 409 … (int)localsize[0], (int)localsize[1], borderTypes[borderType], ocl::typeToStr(depth), in extractCovData() 414 k.args(ocl::KernelArg::PtrReadOnly(src), (int)src.step, src_offset_x, src_offset_y, in extractCovData() 415 ocl::KernelArg::WriteOnlyNoSize(Dx), ocl::KernelArg::WriteOnly(Dy), in extractCovData() 466 ocl::Kernel cornelKernel("corner", ocl::imgproc::corner_oclsrc, in ocl_cornerMinEigenValVecs() 476 cornelKernel.args(ocl::KernelArg::ReadOnly(Dx), ocl::KernelArg::ReadOnly(Dy), in ocl_cornerMinEigenValVecs() 477 ocl::KernelArg::WriteOnly(dst), (float)k); in ocl_cornerMinEigenValVecs() 510 ocl::Kernel k("preCornerDetect", ocl::imgproc::precornerdetect_oclsrc); in ocl_preCornerDetect() 514 k.args(ocl::KernelArg::ReadOnlyNoSize(Dx), ocl::KernelArg::ReadOnlyNoSize(Dy), in ocl_preCornerDetect() 515 ocl::KernelArg::ReadOnlyNoSize(D2x), ocl::KernelArg::ReadOnlyNoSize(D2y), in ocl_preCornerDetect() [all …]
|
/external/opencv3/modules/ts/include/opencv2/ts/ |
D | ocl_perf.hpp | 49 namespace ocl { namespace 100 …for (cvtest::ocl::perf::safeFinish(); startTimer(), next(); cvtest::ocl::perf::safeFinish(), stopT… 103 …for(declare.iterations(n), cvtest::ocl::perf::safeFinish(); startTimer(), next(); cvtest::ocl::per… 106 …for (declare.runs(runsNum), cvtest::ocl::perf::safeFinish(); startTimer(), next(); cvtest::ocl::pe… 107 for (int r = 0; r < runsNum; cvtest::ocl::perf::safeFinish(), ++r) 121 if (cv::ocl::useOpenCL()) in safeFinish() 122 cv::ocl::finish(); in safeFinish()
|
/external/opencv3/modules/core/src/ |
D | umatrix.cpp | 91 if( ocl::haveOpenCL() && ocl::useOpenCL() ) in getStdAllocator() 92 return ocl::getOpenCLAllocator(); in getStdAllocator() 674 if (ocl::useOpenCL() && _dst.isUMat() && dims <= 2) in copyTo() 686 ocl::memopTypeToStr(depth()), cn, mcn, in copyTo() 689 ocl::Kernel k("copyToMask", ocl::core::copyset_oclsrc, opts); in copyTo() 692 k.args(ocl::KernelArg::ReadOnlyNoSize(*this), in copyTo() 693 ocl::KernelArg::ReadOnlyNoSize(_mask.getUMat()), in copyTo() 694 haveDstUninit ? ocl::KernelArg::WriteOnly(dst) : in copyTo() 695 ocl::KernelArg::ReadWrite(dst)); in copyTo() 727 bool doubleSupport = ocl::Device::getDefault().doubleFPConfig() > 0; in convertTo() [all …]
|
D | mathfuncs.cpp | 68 oclop == OCL_OP_PHASE_RADIANS ? 1 : ocl::predictOptimalVectorWidth(_src1, _src2, _dst); in ocl_math_op() 70 const ocl::Device d = ocl::Device::getDefault(); in ocl_math_op() 76 ocl::Kernel k("KF", ocl::core::arithm_oclsrc, in ocl_math_op() 78 oclop2str[oclop], ocl::typeToStr(CV_MAKE_TYPE(depth, kercn)), rowsPerWI, in ocl_math_op() 87 ocl::KernelArg src1arg = ocl::KernelArg::ReadOnlyNoSize(src1), in ocl_math_op() 88 src2arg = ocl::KernelArg::ReadOnlyNoSize(src2), in ocl_math_op() 89 dstarg = ocl::KernelArg::WriteOnly(dst, cn, kercn); in ocl_math_op() 302 const ocl::Device & d = ocl::Device::getDefault(); in ocl_cartToPolar() 312 ocl::Kernel k("KF", ocl::core::arithm_oclsrc, in ocl_cartToPolar() 314 ocl::typeToStr(CV_MAKE_TYPE(depth, 1)), in ocl_cartToPolar() [all …]
|
/external/opencv3/modules/stitching/src/ |
D | warpers.cpp | 113 if (ocl::useOpenCL()) in buildMaps() 115 ocl::Kernel k("buildWarpPlaneMaps", ocl::stitching::warpers_oclsrc); in buildMaps() 118 int rowsPerWI = ocl::Device::getDefault().isIntel() ? 4 : 1; in buildMaps() 123 k.args(ocl::KernelArg::WriteOnlyNoSize(uxmap), ocl::KernelArg::WriteOnly(uymap), in buildMaps() 124 ocl::KernelArg::PtrReadOnly(uk_rinv), ocl::KernelArg::PtrReadOnly(ut), in buildMaps() 313 if (ocl::useOpenCL()) in buildMaps() 315 ocl::Kernel k("buildWarpSphericalMaps", ocl::stitching::warpers_oclsrc); in buildMaps() 318 int rowsPerWI = ocl::Device::getDefault().isIntel() ? 4 : 1; in buildMaps() 331 k.args(ocl::KernelArg::WriteOnlyNoSize(uxmap), ocl::KernelArg::WriteOnly(uymap), in buildMaps() 332 … ocl::KernelArg::PtrReadOnly(uk_rinv), dst_tl.x, dst_tl.y, 1/projector_.scale, rowsPerWI); in buildMaps() [all …]
|
D | blenders.cpp | 254 ocl::buildOptionsAddMatrixDescription(buildOptions, "src", _src); in ocl_MultiBandBlender_feed() 255 ocl::buildOptionsAddMatrixDescription(buildOptions, "weight", _weight); in ocl_MultiBandBlender_feed() 256 ocl::buildOptionsAddMatrixDescription(buildOptions, "dst", _dst); in ocl_MultiBandBlender_feed() 257 ocl::buildOptionsAddMatrixDescription(buildOptions, "dstWeight", _dst_weight); in ocl_MultiBandBlender_feed() 258 ocl::Kernel k("feed", ocl::stitching::multibandblend_oclsrc, buildOptions); in ocl_MultiBandBlender_feed() 264 k.args(ocl::KernelArg::ReadOnly(src), in ocl_MultiBandBlender_feed() 265 ocl::KernelArg::ReadOnly(_weight.getUMat()), in ocl_MultiBandBlender_feed() 266 ocl::KernelArg::ReadWrite(_dst.getUMat()), in ocl_MultiBandBlender_feed() 267 ocl::KernelArg::ReadWrite(_dst_weight.getUMat()) in ocl_MultiBandBlender_feed() 371 if ( !cv::ocl::useOpenCL() || in feed() [all …]
|
/external/opencv3/modules/core/perf/opencl/ |
D | perf_bufferpool.cpp | 13 namespace ocl { namespace 23 if (!cv::ocl::useOpenCL()) in BufferPoolState() 52 BufferPoolState s(cv::ocl::getOpenCLAllocator()->getBufferPoolController(), GetParam()); in OCL_PERF_TEST_P() 69 BufferPoolState s(cv::ocl::getOpenCLAllocator()->getBufferPoolController(), GetParam()); in OCL_PERF_TEST_P() 87 BufferPoolState s(cv::ocl::getOpenCLAllocator()->getBufferPoolController(), GetParam()); in OCL_PERF_TEST_P() 112 BufferPoolState s(cv::ocl::getOpenCLAllocator()->getBufferPoolController(), GetParam()); in OCL_PERF_TEST_P()
|
/external/opencv3/modules/ts/src/ |
D | ocl_perf.cpp | 47 namespace ocl { namespace 55 if (!cv::ocl::useOpenCL()) in checkDeviceMaxMemoryAllocSize() 59 const cv::ocl::Device& dev = cv::ocl::Device::getDefault(); in checkDeviceMaxMemoryAllocSize()
|
/external/opencv3/modules/video/src/ |
D | optflowgf.cpp | 850 ocl::Kernel kernel; in gaussianBlurOcl() 851 if (!kernel.create("gaussianBlur", cv::ocl::video::optical_flow_farneback_oclsrc, "")) in gaussianBlurOcl() 856 idxArg = kernel.set(idxArg, ocl::KernelArg::PtrReadOnly(src)); in gaussianBlurOcl() 858 idxArg = kernel.set(idxArg, ocl::KernelArg::PtrWriteOnly(dst)); in gaussianBlurOcl() 862 idxArg = kernel.set(idxArg, ocl::KernelArg::PtrReadOnly(m_gKer)); in gaussianBlurOcl() 877 ocl::Kernel kernel; in gaussianBlur5Ocl() 878 if (!kernel.create("gaussianBlur5", cv::ocl::video::optical_flow_farneback_oclsrc, "")) in gaussianBlur5Ocl() 882 idxArg = kernel.set(idxArg, ocl::KernelArg::PtrReadOnly(src)); in gaussianBlur5Ocl() 884 idxArg = kernel.set(idxArg, ocl::KernelArg::PtrWriteOnly(dst)); in gaussianBlur5Ocl() 888 idxArg = kernel.set(idxArg, ocl::KernelArg::PtrReadOnly(m_gKer)); in gaussianBlur5Ocl() [all …]
|
D | tvl1flow.cpp | 221 ocl::Kernel kernel; in centeredGradient() 222 if (!kernel.create("centeredGradientKernel", cv::ocl::video::optical_flow_tvl1_oclsrc, "")) in centeredGradient() 226 idxArg = kernel.set(idxArg, ocl::KernelArg::PtrReadOnly(src));//src mat in centeredGradient() 230 idxArg = kernel.set(idxArg, ocl::KernelArg::PtrWriteOnly(dx));//res mat dx in centeredGradient() 231 idxArg = kernel.set(idxArg, ocl::KernelArg::PtrWriteOnly(dy));//res mat dy in centeredGradient() 242 ocl::Kernel kernel; in warpBackward() 243 if (!kernel.create("warpBackwardKernel", cv::ocl::video::optical_flow_tvl1_oclsrc, "")) in warpBackward() 247 idxArg = kernel.set(idxArg, ocl::KernelArg::PtrReadOnly(I0));//I0 mat in warpBackward() 252 ocl::Image2D imageI1(I1); in warpBackward() 253 ocl::Image2D imageI1x(I1x); in warpBackward() [all …]
|
D | bgfg_gaussmix2.cpp | 193 if (ocl::useOpenCL() && opencl_ON) in initialize() 196 …kernel_getBg.create("getBackgroundImage2_kernel", ocl::video::bgfg_mog2_oclsrc, format( "-D CN=%d … in initialize() 328 mutable ocl::Kernel kernel_apply; 329 mutable ocl::Kernel kernel_getBg; 769 idxArg = kernel_apply.set(idxArg, ocl::KernelArg::ReadOnly(frame)); in ocl_apply() 770 idxArg = kernel_apply.set(idxArg, ocl::KernelArg::PtrReadWrite(u_bgmodelUsedModes)); in ocl_apply() 771 idxArg = kernel_apply.set(idxArg, ocl::KernelArg::PtrReadWrite(u_weight)); in ocl_apply() 772 idxArg = kernel_apply.set(idxArg, ocl::KernelArg::PtrReadWrite(u_mean)); in ocl_apply() 773 idxArg = kernel_apply.set(idxArg, ocl::KernelArg::PtrReadWrite(u_variance)); in ocl_apply() 774 idxArg = kernel_apply.set(idxArg, ocl::KernelArg::WriteOnlyNoSize(fgmask)); in ocl_apply() [all …]
|
/external/opencv3/modules/features2d/src/ |
D | matchers.cpp | 75 ocl::Device devDef = ocl::Device::getDefault(); in ocl_matchSingle() 86 bool is_cpu = devDef.type() == ocl::Device::TYPE_CPU; in ocl_matchSingle() 95 …ocl::typeToStr(depth), ocl::typeToStr(CV_MAKETYPE(depth, kercn)), kercn, depth == CV_32F ? "-D T_F… in ocl_matchSingle() 96 ocl::Kernel k("BruteForceMatch_Match", ocl::features2d::brute_force_match_oclsrc, opts); in ocl_matchSingle() 104 idx = k.set(idx, ocl::KernelArg::PtrReadOnly(uquery)); in ocl_matchSingle() 105 idx = k.set(idx, ocl::KernelArg::PtrReadOnly(utrain)); in ocl_matchSingle() 106 idx = k.set(idx, ocl::KernelArg::PtrWriteOnly(trainIdx)); in ocl_matchSingle() 107 idx = k.set(idx, ocl::KernelArg::PtrWriteOnly(distance)); in ocl_matchSingle() 175 ocl::Device devDef = ocl::Device::getDefault(); in ocl_knnMatchSingle() 186 bool is_cpu = devDef.type() == ocl::Device::TYPE_CPU; in ocl_knnMatchSingle() [all …]
|
D | orb.cpp | 72 ocl::Kernel hr_ker("ORB_HarrisResponses", ocl::features2d::orb_oclsrc, in ocl_HarrisResponses() 77 return hr_ker.args(ocl::KernelArg::ReadOnlyNoSize(imgbuf), in ocl_HarrisResponses() 78 ocl::KernelArg::PtrReadOnly(layerinfo), in ocl_HarrisResponses() 79 ocl::KernelArg::PtrReadOnly(keypoints), in ocl_HarrisResponses() 80 ocl::KernelArg::PtrWriteOnly(responses), in ocl_HarrisResponses() 91 ocl::Kernel icangle_ker("ORB_ICAngle", ocl::features2d::orb_oclsrc, "-D ORB_ANGLES"); in ocl_ICAngles() 95 return icangle_ker.args(ocl::KernelArg::ReadOnlyNoSize(imgbuf), in ocl_ICAngles() 96 ocl::KernelArg::PtrReadOnly(layerinfo), in ocl_ICAngles() 97 ocl::KernelArg::PtrReadOnly(keypoints), in ocl_ICAngles() 98 ocl::KernelArg::PtrWriteOnly(responses), in ocl_ICAngles() [all …]
|
/external/opencv3/modules/core/include/opencv2/core/opencl/ |
D | ocl_defs.hpp | 16 if (cv::ocl::useOpenCL() && (condition) && func) \ 32 if (cv::ocl::useOpenCL() && (condition)) \ 47 if (cv::ocl::useOpenCL() && (condition) && func) \
|
D | opencl_svm.hpp | 18 namespace cv { namespace ocl { namespace svm { namespace 41 CV_EXPORTS const SVMCapabilities getSVMCapabilitites(const ocl::Context& context); 73 CV_EXPORTS const SVMFunctions* getSVMFunctions(const ocl::Context& context);
|