Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

Passing an array of cv::GpuMat to a cuda kernel?

$
0
0
I'm trying to write my own cuda kernel but I can't find a way to pass an array of `cv::GpuMat` to the cuda kernel. Here is what I have until now: __global__ void somename(cv::cuda::PtrStepSz *array_of_images) { ... } ... int main(...) { cv::cuda::GpuMat *mats = new cv::cuda::GpuMat[180](); // Initialize eachof the mats somename<<<...>>>(mats); // Doesn't work } The compile error that the above snippet produces is: filane.cu(89): error: argument of type "cv::cuda::GpuMat *" is incompatible with parameter of type "cv::cuda::PtrStepSz *" What's the correct way to pass an array of images to a cuda kernel?

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>