I am trying to load images, e.g. JPGs or PNGs into the texture buffer, to perform some image filtering algorithms like gaussian filtering or sobel edge detection.
normally, i would choose a library like CImg, but i dont have any idea, how and where to include the libraries, and how to patch the make-files.
beginning from the template-folder in the CUDA sdk, i have several files.
template_kernel.cu (i think, this part will be executedon the device)
template.cu (this should be the main programm file)
template_gold.cpp (for some additional functions).
i tried to include CImg in template.cu and in template_gold.cpp, but in all cases, my code does not compile.
can anyone give me a step-by-step help, how to load images?
i am not fixed on CImg.