vpi.Pyramid.zeros

static Pyramid.zeros(size: Tuple[int, int], format: vpi.Format, levels: int, scale: float = 0.5) vpi.Pyramid

Create a zeroed 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, i.e. height, of the pyramid.

  • scale (float) – Scale factor from one level and the next.

Returns

The pyramid initialized with zeroes.

Return type

vpi.Pyramid