Skip to content
New issue

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

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

Already on GitHub? # to your account

support different types of padding in warp_affine to solve anti-aliasing #70

Open
edgarriba opened this issue Apr 3, 2024 · 0 comments
Labels
crate: imgproc enhancement New feature or request help wanted Extra attention is needed

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)

@edgarriba edgarriba changed the title [feature] support different types of padding in warp_affine to solve antialiasing support different types of padding in warp_affine to solve anti-aliasing Mar 9, 2025
@edgarriba edgarriba added help wanted Extra attention is needed crate: imgproc enhancement New feature or request labels Mar 9, 2025
@edgarriba edgarriba changed the title support different types of padding in warp_affine to solve anti-aliasing support different types of padding in warp_affine to solve anti-aliasing Mar 9, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
crate: imgproc enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant