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

Resampling when zooming out #91

Open
howff opened this issue Nov 9, 2024 · 2 comments
Open

Resampling when zooming out #91

howff opened this issue Nov 9, 2024 · 2 comments

Comments

@howff
Copy link
Contributor

howff commented Nov 9, 2024

When I zoom out of a high resolution image of a coastline most of the pixels disappear, presumably because it's picking the "nearest" pixel to plot and most of the image pixels are black. Would it be possible for it to use resampling to pick a better colour? Or would that be too slow at redrawing the image?

Not sure how to pick a suitable colour - average, or brightest, or ...?

@gillins
Copy link
Member

gillins commented Nov 10, 2024

tuiview uses the overview (or pyramid) layers from the image. You'd have to see you those were generated. Look at either at gdaladdo or rioscalcstats and their options.

@howff
Copy link
Contributor Author

howff commented Nov 12, 2024

ok, thank you, I'll try to change the resampling algorithm used to create the overviews

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

No branches or pull requests

2 participants