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

Updated resize function to use cv2.INTER_LINEAR when upsizing images … #268

Merged
merged 1 commit into from
Feb 22, 2016

Conversation

west-rynes
Copy link

…& cv2 is available (downsizing still uses cv2.INTER_AREA). This gives better image quality while still being about as fast.

…& cv2 is available (downsizing still uses cv2.INTER_AREA). This gives better image quality while still being about as fast.
@Zulko
Copy link
Owner

Zulko commented Feb 19, 2016

Thanks, do you have a reference link or image examples to document the issue ?

@west-rynes
Copy link
Author

I couldn't find a good companion of the different opencv interpolation algorithms so I wrote up a little comparison of the algorithms showing the image quality and the computation time:
http://tanbakuchi.com/posts/comparison-of-openv-interpolation-algorithms/

Hope this shows the difference. Mainly nicer not to have jagged edges when upsizing the images. But the inter_area is better for downsizing.

@Zulko
Copy link
Owner

Zulko commented Feb 22, 2016

Thanks, that's great !

Zulko added a commit that referenced this pull request Feb 22, 2016
Updated resize function to use cv2.INTER_LINEAR when upsizing images …
@Zulko Zulko merged commit d1dd63c into Zulko:master Feb 22, 2016
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

2 participants