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

[feature] support different types of padding in warp_affine to solve antialiasing #70

Open
edgarriba opened this issue Apr 3, 2024 · 0 comments

Comments

@edgarriba
Copy link
Member

          There is one problem with my implementation that I forgot to mention. As you can see, the edges are jagged. This is because I skip pixels if they are outside of the original image, which will create aliasing effect. To make smooth edges, we need add different modes of handling the border (1) clamp to edge of the image (as right now) is suitable for resizing, and (2) return zero so that we can still interpolate the few pixels outside the image.

I think for now we can just open an issue to keep track of the problem.
It will be good to also look into OpenCV implementation.

Originally posted by @gau-nernst in #69 (comment)

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

1 participant