Skip to main content
GameDev.net gamedev.net
🔒 Locked

opencl , sobel and debug

Started by giugio Mar 15, 2013 at 9:00 PM 0 replies 1.8k views
Original Post
giugio
giugio

hello.
I have implemented a simple sobel kernel with opencl.
The sobel kernel takes an image rgb buffer as input and return an unsigned char buffer as output.
I load the image in a buffer ,run the kernel and read the output buffer and i creates a texture with the chars of the output buffer.
I do all in an mdi dialog of QT , but now for my debugging purpose i must select some pixels from a qt grid and show only the selected pixels in the texture.

How i can do this?
1)I think that i can use a image and sampler in opencl and send to the kernel a buffer with only the selected pixel and their x and y or
2)other methods with opencl? or
3)there is an easy method with opengl?

thanks.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.