How to load an 8-Bit Grayscale image into a matrix or arrray?

Hi every one,

that’s my question… i need to load an image from some location in hard disk, and convert it into an matrix or array to do operations on it. I know that is very easy in C, but in CUDA i need to prepare the image to be trasform by the CUFFT library. If somebody knows, please tell me. Thanks.

:playball: