コード例 #1
0
ファイル: common.hpp プロジェクト: heroacool/OpenCVMirror
 template<class T> inline void bindTexture(const textureReference* tex, const DevMem2D_<T>& img)
 {
     cudaChannelFormatDesc desc = cudaCreateChannelDesc<T>();
     cudaSafeCall( cudaBindTexture2D(0, tex, img.ptr(), &desc, img.cols, img.rows, img.step) );
 }