Core components

Core components are defined by the library to support its algorithms.

Containers

Containers store data for processing. The library defines three types of containers: vpi.Image, vpi.Array and vpi.Pyramid. Functions and other components are defined to support containers.

vpi.Container

The container base class.

vpi.Image(size, format)

Create an empty image instance.

vpi.Array(capacity, type)

Create an empty array instance.

vpi.Pyramid(size, format, levels[, scale])

Create an empty pyramid instance.

vpi.Image.zeros(size, format)

Create a zeroed image instance.

vpi.Array.zeros(capacity, type)

Create a zeroed array instance.

vpi.Pyramid.zeros(size, format, levels[, scale])

Create a zeroed pyramid instance.

vpi.Image.view(self, rect)

Create a view of an existing image.

vpi.Format

Define the format of an image.

vpi.Type

Define the type of an array.

Execution

The following components are responsible for the execution of algorithms.

vpi.Backend

Set a backend (unit of processing) to run an algorithm.

vpi.Stream

Create a stream (queue) to run algorithms on.