I have found a problem when using cv::cuda::GpuMat since I am uploading originally an image of type Mat1b (which is Mat_<uchar> )
Since apparently a Mat1b does not exist for CUDA versions, I am trying to use what I suppose is the equivalent: the cv::cudev::GpuMat_ template
However when doing
cv::cudev::GpuMat_<uchar> GPUother_image;
I got the following error
error: aggregate ‘cv::cudev::GpuMat_<unsigned char> GPUother_image’ has incomplete type and cannot be defined
cv::cudev::GpuMat_<uchar> GPUother_image;
How can I solve this problem and use GpuMat_ correctly?
No sorry there is not, the markup “<>” killed <uchar>. I have corrected my previous post.
Yes they are equivalent. Furthermore if you are simply using Mat1b because you have to you might as well use standard GpuMat, which can be created from a Mat1b.