问题描述
刚开始玩OpenSeadragon(非常好的顺便说一句)和创建自定义图块集我想知道创建具有重叠图块的优缺点是什么?
Just starting out playing with OpenSeadragon (very good btw) and on creating a custom tile set am wondering what the advantages or disadvantages of creating tiles with an overlap?
我尝试使用0似乎没问题,但我想知道是否有任何清晰度或性能优势或者瓷砖重叠(我认为DeepZoom格式使用4例如?)
I've tried using 0 and it seems ok, but I wonder if there are any clarity or performance advantages or having the tiles overlap (I think DeepZoom format uses 4 for example?)
感谢您提供任何指导!
推荐答案
优势在于当瓷砖放置在非瓷砖时使用子像素和插值 - 整数值。
The advantage is when using sub-pixeling and interpolation when the tiles are placed at non-integer values.
如果它们重叠一点(通常只是一个像素),它们将掩盖通常发生的微小间隙。
If they overlap a little (usually just a single pixel) they will camouflage the tiny gap that typically occur.
(右键单击并选择查看图像以查看大图)
(right-click and select "view image" to see larger version)
对于性能,人们倾向于至少使用可被4整除的宽度和高度(或64位为8),因为它们在内存中复制得更快,通常大小为2 (即32,64,128等)。另请参阅进行缩放。
For performance one would tend to at least use width and height divisible by 4 (or 8 for 64-bit) as these are faster to copy in memory, and often a size of 2 (ie. 32, 64, 128 etc.). Also see mip-mapping for zooming.
这篇关于瓷砖重叠的好处是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!