public interface MultiLevelModel
MultiLevelModel
class represents a layout model for multi-resolution images such as image pyramids.
It provides the number of resolution levels, the affine transformation from image (pixel) to model coordinates and the bounds in model coordinates.
The resolution level is an integer number ranging from zero (the highest resolution)
to getLevelCount()
-1 (the lowest resolution).
Modifier and Type | Method and Description |
---|---|
AffineTransform |
getImageToModelTransform(int level)
Gets a copy (non-life object) of the affine transformation from image to model coordinates for the given level.
|
int |
getLevel(double scale)
Gets the resolution level for a given scaling factor, e.g.
|
int |
getLevelCount()
Gets the number of resolution levels, which is always greater than zero.
|
Rectangle2D |
getModelBounds()
Gets the bounding box in model coordinates.
|
AffineTransform |
getModelToImageTransform(int level)
Gets a copy (non-life object) of the affine transformation from model to image coordinates for the given level.
|
double |
getScale(int level)
Gets the scale for a given resolution level, e.g.
|
int getLevelCount()
int getLevel(double scale)
level=log(scale)/log(2)
.scale
- The scaling factor, will always be a greater than or equal to 1.levelCount
-1.MultiLevelSource.getImage(int)
double getScale(int level)
scale=pow(2,level)
.level
- The resolution level, must be in the range 0 to levelCount
-1.getLevel(scale)
shall return level
.MultiLevelSource.getImage(int)
AffineTransform getImageToModelTransform(int level)
level
- The resolution level, must be in the range 0 to levelCount
-1.AffineTransform getModelToImageTransform(int level)
level
- The resolution level, must be in the range 0 to levelCount
-1.Rectangle2D getModelBounds()
null
if unspecified.Copyright © 2014–2015 European Space Agency (ESA). All rights reserved.