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

Resize for arbitrary implementations of ImgBase #13

Open
hageldave opened this issue Apr 16, 2018 · 0 comments
Open

Resize for arbitrary implementations of ImgBase #13

hageldave opened this issue Apr 16, 2018 · 0 comments

Comments

@hageldave
Copy link
Owner

Resize for Img can be done using the g2d mapping, but this may not work for other implementations of ImgBase (maybe not even for ColorImg) especially when creategraphics is not supported.
The approach for downsampling should use mipmaps or image pyramids of some kind, and interpolate between pyramid layers for sizes in between halves to counteract aliasing (trilinear interpolation).
For upsampling, linear interpolation may suffice, but if not too complicated, 2nd or 3rd order spline surfaces can be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant