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
interpolation blend colors even when fully transparent #25473
Comments
warpAffine applies interpolation to all channels, including alpha. It means, that alpha value on rectangle border is not strictly 0 or 255. |
yes, but the problem is that when the background color is (255, 0, 0, 0) it is interpolating to red even though alpha is 0. when image background is RGBA (0, 0, 0, 0) when image background is RGBA (255, 0, 0, 0) when image background is RGBA (0, 255, 0, 0) background is fully transparent so it be (0, 0, 0, 0) or (255, 0, 0, 0) or (0, 255, 0, 0) should produce same results, the RGB channels should be ignored when alpha is 0 this wikipedia articles describes this problem |
@asmorkalov |
System Information
OpenCV python version: 4.9.0.80
Operating System / Platform: Windows 10
Python version: 3.11.2
Detailed description
when using any type of interpolation the border matches background color, which is expected, the problem is that even when the background alpha is 0, it is still blending the others RGB channels
Steps to reproduce
zoom in the images to see
Issue submission checklist
The text was updated successfully, but these errors were encountered: