Printing data in the screen

Hi Everyone,

i’m working in a image algorithm with cuda and cimg libraries. I need to print my images matrix to the screen to know the values of each pixel. Is there any method to do this in CUDA?

Thanks!

Hi,
have you checked the SDK examples - is there anything similar in there?

If you need to draw the data as an image, you can use cooperation with OpenGL pixel buffer object and render directly from device memory.
Or you can always copy data to host memory and display it as text or whatever you need.
I don’t understand what exactly you need to do…