load images in global memory

Hi all, i’m new here, I’m working on an implementation on GPU of an new algorithm for gamut mapping. My question is about to load an image RGB in the global memory and make a per-pixel calcolous to pass in the XYZ color space. But on guide or in example I havent found this. Nobody has an idea or an example to submit to me?

Thank you advance :) ,