I would like to be able to use bilinear interpolation on my kernel. So I use this example:
cudaChannelFormatDesc desc = cudaCreateChannelDesc<unsigned char>(); checkCudaErrors(cudaBindTexture2D(0,&Image_Gray,u8_GrayImage_Device, &desc, icols , irows, icols));
It seems that the outpout ot the statement: tex2D(Image_Gray,v.x,v.y); is in int format, there is no interpolation.
How can I do the bilinear interpolation with u_int8_t data?