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?
opencl , sobel and debug,
Members - Reputation: 246
Posted 15 March 2013 - 03:00 PM