vpi.Pyramid
- class vpi.Pyramid(size: Tuple[int, int], format: vpi.Format, levels: int, scale: float = 0.5) vpi.Pyramid
Create an empty pyramid instance.
- Parameters
size (Tuple[int, int]) – Dimensions (width, height) of the finest pyramid level.
format (vpi.Format) – Image format of each level.
levels (int) – The number of levels in the pyramid.
scale (float) – Scale factor from one level and the next.
- Returns
The pyramid.
- Return type
Hint
The contents of a pyramid instance can be accessed via
container methods.Attributes
formatFormat of all images in the pyramid.
heightHeight of the finest pyramid level.
idIndex (sequential number) of the instance.
levelsThe number of levels in the pyramid.
scaleThe scale factor from one level and the next.
sizeSize of the finest pyramid level as a tuple of (width, height).
sizesSizes of all pyramid levels as a list of tuples of (width, height).
widthWidth of the finest pyramid level.