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

Use bilinear filtering for draw_image w/ non-simple transformation #32

Merged
merged 1 commit into from
Dec 27, 2016

Conversation

jwiggins
Copy link
Member

As noted in enthought/enable#247, drawing images with a non-integral offset gives a strange artifact along the edge of the image. This was apparently a consequence of nearest-neighbor sampling.

@corranwebster: This should fix what you were seeing. There is still discoloration at the edges, but it's colored now, instead of the gray "background color" that was showing before. I believe this to be the correct result.

If the transform is a simple (integer valued) translation, continue using
the nearest neighbor sampling.
@jwiggins jwiggins merged commit f6e47f3 into master Dec 27, 2016
@jwiggins jwiggins deleted the fix/image-filtering branch December 27, 2016 10:19
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

Successfully merging this pull request may close these issues.

None yet

1 participant