Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to bind GpuMat to texture

I have a GpuMat Image(H, W, CV_8UC3)
May I bind it using these function?

texture<uchar3, 2, cudaReadModeNormalizedFloat> rgbTex;
cudaChannelFormatDesc desc = cudaCreateChannelDesc<uchar3>();
cudaBindTexture2D(0, rgbTex, Image.data, desc, W, H, Image.step));