Forum Discussion
Altera_Forum
Honored Contributor
11 years agoSobelFilter, different results from C and OpenCL Implementations
Hello everyone, I tried to write an OpenCL code to implement the Sobel Filter. But I got strange results. It does detect the edge, but it looks like a distracted version. http://www.alteraforum...
Altera_Forum
Honored Contributor
11 years agoI don't think it is caused by the read and write of the data. I tried to make the output of the kernel just equal to the input, then the image is perfectly recreated.
I also tried different worksize, the results remain the same. And the input data comes from the source image, and the result id written to the destination. So I also don't think there are dependency. These are my thoughts. Please correct me, if I am wrong. Thank you.