It currently develop and test on GPU devices only. This includes both discrete GPUs(NVidia,AMD), as well as integrated chips(AMD APU and intel HD devices).

The ocl module can be found under the “modules”directory. In “modules/ocl/src” you can find the source code for the cpp class that wrap around the direct kernel invocation. The kernels themselves can be found in “modules/ocl/src/kernels.” Samples can be found under “samples/ocl.”Accuracy tests can be found in “modules/ocl/test,”and performance tests under “module/ocl/perf.”

If a function support 4-channel operator, it should support 3-channel operator as well, because All the 3-channel matrix(i.e. RGB image) are represented by 4-channel matrix in oclMat. It means 3-channel image have 4-channel space with the last channel unused.

1.      getDevice:returns the list of devices;

2.      setDevice:sets adevice and initializes it;

3.      setBinpath:if you call this function and set a valid path, the OCL module will save the complied kernel to the address in the first time and reload the binary since that, it can save compilation time at the runtime;

4.      getoclContext:returns the pointer to the opencl context;

5.      getoclCommandQueue:returns the pointer to the opencl command queue;

6.      class::oclMat:OpenCV C++1-D or 2-D dense array class, the oclMat is the mirror of Mat with the extension of ocl feature;

7.      oclMat::convertTo:the method converts source pixel values to the target datatype, saturate cast is applied in the end to avoid possible overflows;

8.      oclMat::copyTo:copies the matrix to another one;

9.      oclMat::setTo:sets all or some of the array elements to the specified value;

10.  absdiff:computes per-element absolute difference between two arrays or between array and ascalar;

11.  add:computes per-element addition between two arrays or between array and a scalar;

12.  subtract:computes per-element subtract between two arrays or between array and a scalar;

13.  multiply:computes per-element multiply between two arrays or between array and a scalar;

14.  divide:computes per-element divide between two arrays or between array and a scalar;

15.  bitwise_and:computesper-element bitwise_and between two arrays or between array and a scalar;

16.  bitwise_or:computes per-element bitwise_or between two arrays or between array and a scalar;

17.  bitwise_xor:computes per-element bitwise_xor between two arrays or between array and a scalar;

18.  bitwise_not:the function bitwise not compute per-element bit-wise inversion of the source array;

19.  cartToPolar:calculates the magnitude and angle of 2d vectors;

20.  polarToCart:calculates the Cartesian coordinates of each 2D vector represented by the correspondingelements of magnitude and angle;

21.  compare:performs per-element comparison of two arrays or an array and scalar value;

22.  exp:calculates the exponent of every element of the input array;

23.  log:calculates the log of every element of the input array;

24.  LUT:performs a look-up table transform of an array;

25.  magnitude:calculates magnitude of 2D vectors formed from the corresponding element of x and y arrays;

26.  flip:flips the array in one of three different ways(row and column indices are 0-based);

27.  meanStdDev:compute the mean and the standard deviation M of array elements, independently for eachchannel, and return it via the output parameters;

28.  merge:composes a multi-channel array from several single-channel arrays;

29.  split:split multi-channel array into separate single-channel arrays;

30.  norm:calculates absolute array norm, absolute difference norm, or relative difference norm;

31.  phase:computes the rotation angle of each 2D vector that is formed from the corresponding elementsof x and y;

32.  pow:raises every element of the input array to p;

33.  transpose:transposes a matrix;

34.  dft(cv::dft):performs a forward or inverse discrete Fourier transform(1D or 2D) of the floating pointmatrix;

35.  gemm(cv::gemm):performs generalized matrix multiplication;

36.  countNonZero:returns the number of non-zero elements in src;

37.  minMax:finds global minimum and maximum in a whole array or sub-array;

38.  minMaxLoc:find minimum and maximum element values and their positions;

39.  sum:returns the sum of matrix elements for each channel;

40.  sqrSum:returns the squared sum of matrix elements for each channel;

41.  Sobel:computesthe first x- or y- spatial image derivative using Sobel operator;

42.  Scharr:computes the first x- or y- spatial image derivative using Scharr operator;

43.  GaussianBlur:convolves the source image with the specified Gaussian kernel;

44.  boxFilter:smoothes image using box filter;

45.  Laplacian:calculates the Laplacian of the source image by adding up the second x and y derivativescalculated using the Sobel operator;

46.  convolue:convolves an image with the kernel;

47.  bilateralFilter:applies bilateral filter to the image;

48.  copyMakeBorder:forms a border around the image;

49.  dilate:dilatesthe source image using the specified structuring element that determines theshape of a pixel neighborhood over which the maximum is taken;

50.  erode:erodes the source image using the specified structuring element that determines the shapeof a pixel neighborhood over which the minimum is taken;

51.  morphologyEx:a wrapper for erode and dilate;

52.  pyrDown(cv::pyrDown):smoothes an image and downsamples it;

53.  pyrUp(cv::pyrUp):upsamples an image and then smoothes it;

54.  columnSum:computes a vertical(column) sum;

55.  blendLinear:performs linear blending of two images;

56.  cornerHarris:calculate Harris corner;

57.  cornerMinEigenVal:calculate MinEigenVal;

58.  calcHist:calculates histogram of one or more arrays;

59.  remap:transforms the source image using the specified map;

60.  resize:resizes an image;

61.  warpAffine: transforms the source image using the specified matrix;

62.  warpPerspective:applies a perspective transformation to an image;

63.  cvtColor:converts image from one color space to another;

64.  threshold:applies fixed-level thresholding to a single-channel array;

65.  buildWarpPlaneMaps:builds plane warping maps;

66.  buildWarpCylindricalMaps:builds cylindrical warping maps;

67.  buildWarpSphericalMaps:builds spherical warping maps;

68.  buildWarpPerspectiveMaps(ocl::warpPerspective):builds transformation maps for perspective transformation;

69.  buildWarpAffineMaps(ocl::warpAffine):builds transformation maps for affine transformation;

70.  class::PyrLKOpticalFlow(cv::calcOpticalFlowPyrLK):class used for calculating an optical flow;

71.  PyrLKOpticalFlow::sparse:calculate an optical flow for a sparse feature set;

72.  PyrLKOpticalFlow::dense:calculate dense optical flow;

73.  PyrLKOpticalFlow::releaseMemory:releases inner buffers memory;

74.  interpolateFrames:interpolateframes(images) using provided optical flow(displacement field);

75.  class::OclCascadeClassifier:cascade classifier class used for object detection;

76.  OclCascadeClassifier::oclHaarDetectObjects:returns the detected objects by a list rectangles;

77.  struct::MatchTemplateBuf:class providing memory buffers for matchTemplate function, plus it allows to adjustsome specific parameters;

78.  matchTemplate(cv::matchTemplate):computes aproximity map for a raster template and an image where the template is searchedfor;

79.  Canny(cv::Canny):finds edgesin an image using the Canny algorithm;

80.  class::BruteForceMatcher_OCL_base(cv::DescriptorMatcher,cv::BFMatcher):Brute-force descriptor matcher, for each descriptor in the firstset, this matcher finds the closest descriptor in the second set by trying eachone;

81.  BruteForceMatcher_OCL_base::match:finds the best match for each descriptor from a query set with traindescriptors;

82.  BruteForceMatcher_OCL_base::makeGpuCollection:performs a GPU collection of traindescriptors and masks in a suitable format for the matchCollection function;

83.  BruteForceMatcher_OCL_base::matchDownload:downloads matrices obtained viamatchSingle or matchCollection to vector with DMatch;

84.  BruteForceMatcher_OCL_base::matchConvert:converts matrices obtained viamatchSingle or matchCollection to vector with DMatch;

85.  BruteForceMatcher_OCL_base::knnMatch:finds the k best matches for eachdescriptor from a query set with train descriptors;

86.  BruteForceMatcher_OCL_base::knnMatchDownload:downloads matrices obtained viaknnMatchSingle or knnMatch2Collection to vector with DMatch;

87.  BruteForceMatcher_OCL_base::knnMatchConvert:converts matrices obtained viaknnMatchSingle or knnMatch2Collection to CPU vector with DMatch;

88.  BruteForceMatcher_OCL_base::radiusMatch:for each query descriptor, finds thebest matches with a distance less than a given threshold;

89.  BruteForceMatcher_OCL_base::radiusMatchDownload:downloads matrices obtained viaradiusMatchSingle or radiusMatchCollection to vector with DMatch;

90.  BruteForceMatcher_OCL_base::radiusMatchConvert:converts matrices obtained viaradiusMatchSingle or radiusMatchCollection to vector with DMatch;

91.  struct::HOGDescriptor:the class implements Histogram ofOriented Gradients object detector;

92.  HOGDescriptor::getDescriptorSize:returns the number of coefficientsrequired for the classification;

93.  HOGDescriptor::getBlockHistogramSize:returns the block histogram size;

94.  HOGDescriptor::setSVMDetector:sets coefficients for the linear SVMclassifier;

95.  HOGDescriptor::getDefaultPeopleDetector:returns coefficients of the classifiertrained for people detection(for default window size);

96.  HOGDescriptor::getPeopleDetector48x96:returns coefficients of the classifiertrained for people detection(for 48x96 windows);

97.  HOGDescriptor::getPeopleDetector64x128:returns coefficients of the classifiertrained for people detection(for 64x128 windows);

98.  HOGDescriptor::detect:performs object detection without amulti-scale window;

99.  HOGDescriptor::detectMultiScale:performs object detection with amulti-scale window;

100.  HOGDescriptor::getDescriptors:returns block descriptors computed forthe whole image;

OpenCV中OpenCL模块函数相关推荐

  1. OpenCV中GPU模块使用

    CUDA IT168的文章系列: Cuda的初始化 :http://tech.it168.com/a2011/0715/1218/000001218458.shtml OpenCV: OpenCV中G ...

  2. 【OpenCV】OpenCV中积分图函数与应用

    OpenCV中积分图函数与应用 参考资料 opencv 查找integral,目前网上大部分的资料来自于opencv https://docs.opencv.org/master/d7/d1b/gro ...

  3. opencv中伪彩色applyColorMap函数(C++ / Python)

    opencv中伪彩色applyColorMap函数(C++ / Python) 翻译 2017年06月23日 15:34:12 标签: 1654

  4. opencv中的approxPolyDP函数和boundingRect函数

    opencv中的approxPolyDP函数和boundingRect函数说明 cv2.boundingRect 举例: import numpy as npimage=cv2.imread(&quo ...

  5. 使用opencv中的merge()函数为BGR图像添加alpha通道

    先上代码: #!/usr/bin/env python # -*- coding: utf-8 -*- # 图像处理开发需求.图像处理接私活挣零花钱,请加微信/QQ 2487872782 # 图像处理 ...

  6. python跨函数调用变量_对python中不同模块(函数、类、变量)的调用详解

    首先,先介绍两种引入模块的方法. 法一:将整个文件引入 import 文件名 文件名.函数名( ) / 文件名.类名 通过这个方法可以运行另外一个文件里的函数 法二:只引入某个文件中一个类/函数/变量 ...

  7. 解决opencv中cv2.VideoCapture()函数打开USB视频慢的问题

    解决opencv中cv2.VideoCapture()函数打开USB视频慢的问题!!! cv2.VideoCapture(0)打开电脑自带摄像头比cv2.VideoCapture(1)打开usb慢好多 ...

  8. opencv中的copyTo函数在opencv-Python中的实现

    Opencv中的copyTo()函数在opencv-Python中的实现 copyTo() 函数有两种方式 第一种:src_Image.copyTo(dst_Image),表示将原图复制到目标图中. ...

  9. 【计算机视觉】OpenCV中直方图处理函数简述

    计算直方图calcHist 直方图是对数据集合的统计 ,并将统计结果分布于一系列提前定义的bins中.这里的数据不只指的是灰度值 ,统计数据可能是不论什么能有效描写叙述图像的特征. 如果有一个矩阵包括 ...

最新文章

  1. 你已经是个成熟的表格,该学会NLP了
  2. switch和枚举的小坑
  3. C#复制图片_并重命名
  4. 算子find_shpe_model参数详解
  5. Enterprise Library 3.0 体验(3):使用配置文件的Validation Application Block
  6. 笔谈OpenGL ES(一)
  7. Codeforces1080F. Katya and Segments Sets
  8. linux内核深度解析_十年磨一剑,第一本龙芯平台的Linux内核书来了
  9. 数列分块入门 9(LibreOj-6285)
  10. 服务器传递文件丢包怎么回事,TCP传输协议中如何解决丢包问题
  11. 计算机系统的输入与输出接口是,计算机输入输出系统与接口技术
  12. Periodic Call 1.0
  13. 桌面版IDE将迎终结,Github发布代码空间Codespaces | 凌云时刻
  14. linux系统LCD驱动(二):mtk lcd驱动fb_info初始化
  15. Rust搜索服务器、rust快速找服教程
  16. 计算机四级网络工程师缺页啥意思,2019年计算机四级网络工程师试题
  17. 浅谈微博、微信公众号、今日头条三者的区别
  18. Android 显示大尺寸图片
  19. STM32F4串口通信
  20. 内地移动支付全球领先?醒醒吧,香港在这5个方面已赶超内地了!

热门文章

  1. 读后感与机翻《基于理论的因果迁移:结合实例级的归纳和抽象级的结构学习》
  2. Linux那些事儿 之 戏说USB(12)接口是设备的接口(一)
  3. Roundgod and Milk Tea 贪心
  4. 解决:vs2013 错误 1 error MSB8031: Building an MFC project for a non-Unicode character set is deprecated.
  5. 2018目标检测最新算法+经典目标检测算法
  6. Node.js实现本地客户端上传单个或者多个文件Excel文件(xls格式、xlsx格式文件)到服务器端,并且解析对应的Excel内容反馈到请求报文中
  7. 在Ubuntu 16.04.3 LTS上玩转QUIC开源项目proto-quic
  8. 编译ceph源码:cython module not found问题的解决
  9. 在做项目中遇到的JS问题
  10. (转)记忆杭州中的(非杭户籍人)