GPUMat and Mat
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
Correct your question as currently it's not clear what you are asking for. Also, what do you mean by kernel?
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 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...