vpi.Image

class vpi.Image(size: Tuple[int, int], format: vpi.Format) vpi.Image

Create an empty image instance.

Parameters
  • size (Tuple[int, int]) – The size of the image.

  • format (vpi.Format) – The format of the image.

Returns

The image.

Return type

vpi.Image

Hint

The contents of an image instance can be accessed via container methods.

Attributes

format

Format of the image (see image formats).

height

Height of the image.

id

Index (sequential number) of the instance.

size

Size of the image as a tuple of (width, height).

width

Width of the image.