![]() |
SlideIO 2.9.0
Open-source library for reading of medical images
|
Description of a single level of the internal image pyramid of a scene. More...
#include <levelinfo.hpp>
Public Member Functions | |
| void | updateTileCount () const |
| recomputes the cached tile count from the current level and tile size. | |
| int | getLevel () const |
| returns the index of the level. Level 0 is the level of the highest resolution. | |
| Size | getSize () const |
| returns the size of the level in the pixels of the level. | |
| double | getScale () const |
| returns the scale of the level relative to level 0. More... | |
| double | getMagnification () const |
| returns the objective magnification of the level. 0 if the format does not report it. | |
| Size | getTileSize () const |
| returns the size of a tile of the level. (0,0) if the level is not tiled. | |
| int | getTileCount () const |
| returns the number of tiles of the level. More... | |
| std::string | toString () const |
| returns a human readable description of the level. | |
| Rect | getTileRect (int tileIndex) const |
| returns the rectangle of a tile in the coordinate system of the level. More... | |
Description of a single level of the internal image pyramid of a scene.
A scene keeps one object per zoom level and returns it from Scene::getLevelInfo. The object describes the geometry of the level: its size in the pixels of the level, the scale relative to level 0, the objective magnification and the size of the tiles the level is stored in. It also exposes the tile grid of the level through getTileCount and getTileRect, which return rectangles in the coordinate system of the level and can be passed straight to Scene::readResampledLevelBlockChannels.
|
inline |
returns the scale of the level relative to level 0.
The scale of level 0 is 1; a level of half the size of level 0 has a scale of 0.5.
|
inline |
returns the number of tiles of the level.
A level that is not tiled consists of a single tile that covers the whole level.
|
inline |
returns the rectangle of a tile in the coordinate system of the level.
Tiles are numbered row by row, from the top left corner of the level.
| tileIndex | : tile index, in the range [0, getTileCount()). |