-
Notifications
You must be signed in to change notification settings - Fork 46
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
affine transform debug #310
Comments
Hi @iionichi , awesome! Great to see progress here :-) Would you mind uploading your code and the (notebook?) that produces the output shown above to a branch or fork on github? In that way, others could reproduce your experiment and potentially help. Have a great weekend! Best, |
@haesleinhuepf |
Where? Can you provide a link? Thanks! |
Since I cannot commit in the this repository I had forked it to push the code in the affine branch : https://github.com/iionichi/pyclesperanto_prototype/tree/affine Here is the pull request to merge the update to the affine branch of this repository : #311 |
Just for completeness, the notebook is located there: |
printing in opencl:
|
In case you want to make sure that pixels outside the image are considered == 0, feel free to adapt the strategy used here: |
@haesleinhuepf can you share how you showed the color beyond the edge of the image? |
I have updated the code. |
Context and Problem
This is code which I have extended for affine transformation to include interpolation at the software level. However the desired output is not getting generated.
Input image
Following is the output from the above code.
Following is the output from interpolation done by openCL
What I would like to do
I want to debug at the kernel level to understand what is happening and how the calculations are being performed. People on the internet said to run the kernel in a debugger to closely monitor the kernel. If someone has already done it I would be happy to learn how to do it.
Something I found
In the book OpenCL in Action it says in page 137 that:
With this I understand that OpenCL has in-built functions to deal with interpolations when it is not supported in some systems. In this case I don't think it would be necessary to add this interpolation at the kernel level.
The text was updated successfully, but these errors were encountered: