How do I load an image with Cuda 5.0

Hi,

I’m using Cuda 5.0 on visual studio 2010, and i want to load an image to try some kernels on it.

I tryied to use cutil.h but i found that it’s not available on cuda 5.0. Is there any header in cuda5.0 that i can use or an other way that I can use to load an image.

thank you for your help

None of the CUDA sub-libraries that I know has such a functionality. I recommend using Win32 functions for loading bitmaps or libraries like libpng or SDL_image. You can also try implementing one Yourself :)

Cheers,
MK

Thank you cmaster.matso for your response, I’ve found a solution. I’m using OpencCV and it’s very usefull.