Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read 0 outside image (instead of clamp-to-edge) #302

Open
haesleinhuepf opened this issue Apr 23, 2023 · 1 comment
Open

Read 0 outside image (instead of clamp-to-edge) #302

haesleinhuepf opened this issue Apr 23, 2023 · 1 comment

Comments

@haesleinhuepf
Copy link
Member

We should be able to read pixels outside the image as 0 . Problem: This is not officially defined by the opencl standard. Furthermore, a code section relevant for this is commented out. I think I remember that this didn't work on specific hardware:

if (true) { // if (CLK_ADDRESS_CLAMP_TO_EDGE & sampler) {

Anyway, it would be great to have some specific kernels read 0 outside the image.

@StRigaud
Copy link
Member

I think this should be an Issue for the kernel repo and be addressed in the preamble / OpenCL management, with possible an option defined at runtime.

Right now, the border effect correspond to the nearest mode ( aaaa | abcd | dddd ).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants