0
我想将启用nVIDIA的代码及其gpu::
函数重写为启用OpenCL的代码。我无法在OCL's Matrix reductions上找到ocl::reduce()
函数做一个行总和,类似于gpu::reduce()
。有任何想法吗?什么是gpu :: reduce()的OpenCL等价物? (OpenCV 2.4)
我想将启用nVIDIA的代码及其gpu::
函数重写为启用OpenCL的代码。我无法在OCL's Matrix reductions上找到ocl::reduce()
函数做一个行总和,类似于gpu::reduce()
。有任何想法吗?什么是gpu :: reduce()的OpenCL等价物? (OpenCV 2.4)
我认为,如果你通过'UMat'为['reduce'](http://docs.opencv.org/2.4.8/ modules/core/doc/operations_on_arrays.html?highlight = reduce#void reduce(InputArray src,OutputArray dst,int dim,int rtype,int dtype))它会工作还是我错了? – EdChum
谢谢@EdChum。我有点吝惜地使用任何'cv ::'函数,因为我认为它们只能在CPU上运行,而不是在GPU上运行的'ocl ::'函数。 –