+
+ // allocate array and copy image data
+ cudaChannelFormatDesc channelDesc = cudaCreateChannelDesc(32, 0, 0, 0, cudaChannelFormatKindUnsigned);
+ cudaArray * array_img_in ;
+ cudaMallocArray( &array_img_in, &channelDesc, L, H );
+ cudaBindTextureToArray( tex_img_in, array_img_in, channelDesc);
+