Zoomify Tile Structure Analysis

Hloubka pyramidy (depth of pyramid):

a_0 = \lceil max\{ Width, Height \} / TileSize \rceil


a_n = \lceil a_{n-1} / 2 \rceil


a_{d-1} = \lceil a_{d-2} / 2 \rceil = 1


d = ?

Pozor ale:

d \not= \lceil log_2 ( max \{ Width, Height \} / TileSize ) \rceil

Celkový počet dlaždic (total amount of tiles):

\sum_{i=1}^{d} \left \lceil \frac{ \lfloor Width / 2^{d-i} \rfloor}{ TileSize } \right \rceil \left \lceil \frac{ \lfloor Height / 2^{d-i} \rfloor}{ TileSize } \right \rceil

Index dané dlaždice (index of a tile by level, x, y):

f(l, x, y) = x + y \left \lceil \frac{ \lfloor Width / 2^{d-l-1} \rfloor}{ TileSize } \right \rceil + \sum_{i=1}^l \left \lceil \frac{ \lfloor Width / 2^{d-i} \rfloor}{ TileSize } \right \rceil \left \lceil \frac{ \lfloor Height / 2^{d-i} \rfloor}{ TileSize } \right \rceil

TileGroup:

Index dané dlaždice modulo TileSize (Index of the tile modulo 256)

Python kod s implementaci (python implementation)

== Zoomify Analýza ==

Hloubka pyramidy (depth):
<math>a_0 = \lceil max\{ Width, Height \} / TileSize \rceil
</math>
<math>a_n = \lceil a_{n-1} / 2 \rceil</math>
<math>a_{d-1} = \lceil a_{d-2} / 2 \rceil = 1</math>
<math>d = ? </math>

Pozor ale:
<math> d \not= \lceil log_2 ( max \{ Width, Height \} / TileSize
) \rceil</math>

Celkový počet dlaždic:
<math> \sum_{i=1}^{d} \left \lceil \frac{ \lfloor Width / 2^{d-i}
\rfloor}{ TileSize } \right \rceil \left \lceil \frac{ \lfloor Height /
2^{d-i} \rfloor}{ TileSize } \right \rceil</math>

Index dané dlaždice:
<math> f(l, x, y) = x +
y \left \lceil \frac{ \lfloor Width / 2^{d-l-1} \rfloor}{ TileSize }
\right \rceil +
\sum_{i=1}^l \left \lceil \frac{ \lfloor Width / 2^{d-i} \rfloor}{
TileSize } \right \rceil \left \lceil \frac{ \lfloor Height / 2^{d-i}
\rfloor}{ TileSize } \right \rceil</math>

TileGroup:
Index dané dlaždice modulo TileSize