Ask Your Question

Revision history [back]

GpuMat to device data type conversion

Hi all,

I wonder to know that is there a way to convert GpuMat to CUDA data type and vice versa? Say, I have GpuMat(512, 512, CV_32FC2) and I want to convert it to float2* which has 512*512 elements. The reason is I want to write my own kernel outside cv::gpu modules. It seems that the smart pointer could work in this case.

Best regards,