GPUMat and Mat

asked 2017-07-17 05:41:42 -0600

narutocool gravatar image

Hi, I need to do some operation on matrix (subtract, reshape, roi, ...) and I use cuda for parallel treatments. But in the kernel I thought GPUMat was Mat but for kernel. It wasn't the cas and I ask what is the meaning of GPUMat and how do the operation in my kernel without Mat.

Thanks

edit retag flag offensive close merge delete

Comments

Correct your question as currently it's not clear what you are asking for. Also, what do you mean by kernel?

KjMag gravatar imageKjMag ( 2017-07-17 06:37:44 -0600 )edit

OpenCV uses GPUMat to allow users to push data to pregenerated opencl kernels that are wrapped with opencv functions. If you want data in actual CUDA kernels, you will not be able to do that with OpenCV. You need pure CUDA programming for that... seems like your using OpenCV for the wrong purpose?

StevenPuttemans gravatar imageStevenPuttemans ( 2017-07-18 08:08:44 -0600 )edit

@StevenPuttemans I am too a beginner when it comes to OpenCV but I have seen forums where you can access Image data in CUDA kernels, like using PtrStep. You can see it here https://stackoverflow.com/questions/2...

munesh gravatar imagemunesh ( 2017-08-23 01:23:29 -0600 )edit