You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While using Titiler (AWS with 0.11.6) and experimenting with parameters to find the best output for my use case, I noticed that using any tiles/ endpoints with resampling=lanczos adds a border to the edges of the rendered pixels at low to mid zoom levels. It is most obvious on straight edges (pictured below), but the easiest public example I have is from OAM. Adjusting other parameters did not seem to help, nor did I see any other common resampling methods produce a similar effect at any zoom level.
Opening here to discuss whether this is expected and where the root issue might be, given this is the most likely relevant dependency of Titiler.
I am building an app which often showcases historic maps and images with other discrete details, so lanczos yielded the best quality results at lowest zoom level for a given image. In the meantime, using a higher scale also works and this issue is probably a very low priority, but it would be a nice-to-have to be able to use lanczos.
I'll also note that I successfully use lanczos resampling without a similar border on the preview endpoint– a really awesome feature of Titiler btw!
Examples
Example using cog/tiles/15/18272/[email protected]?TileMatrixSetId=WebMercatorQuad&url=https%3A%2F%2Foin-hotosm.s3.us-east-1.amazonaws.com%2F649d03872fb3a800012c9e6d%2F0%2F649d03872fb3a800012c9e6e.tif&resampling=lanczos , with another nonpublic rectangular example below to better illustrate.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
While using Titiler (AWS with 0.11.6) and experimenting with parameters to find the best output for my use case, I noticed that using any
tiles/
endpoints withresampling=lanczos
adds a border to the edges of the rendered pixels at low to mid zoom levels. It is most obvious on straight edges (pictured below), but the easiest public example I have is from OAM. Adjusting other parameters did not seem to help, nor did I see any other common resampling methods produce a similar effect at any zoom level.Opening here to discuss whether this is expected and where the root issue might be, given this is the most likely relevant dependency of Titiler.
I am building an app which often showcases historic maps and images with other discrete details, so lanczos yielded the best quality results at lowest zoom level for a given image. In the meantime, using a higher scale also works and this issue is probably a very low priority, but it would be a nice-to-have to be able to use lanczos.
I'll also note that I successfully use lanczos resampling without a similar border on the preview endpoint– a really awesome feature of Titiler btw!
Examples
Example using
cog/tiles/15/18272/[email protected]?TileMatrixSetId=WebMercatorQuad&url=https%3A%2F%2Foin-hotosm.s3.us-east-1.amazonaws.com%2F649d03872fb3a800012c9e6d%2F0%2F649d03872fb3a800012c9e6e.tif&resampling=lanczos
, with another nonpublic rectangular example below to better illustrate.lanczos vs nearest
Beta Was this translation helpful? Give feedback.
All reactions