Output Allocators for OpenVX* 1.1

Output Allocators for OpenVX* 1.1 include the following:

Tensor From Images (outputAllocators.TensorFromImages)

Description

Receives 16-bit images as inputs and creates a three dimensional tensor that contains the data images. This kernel is equivalent to the following code snippet:

NOTE: The Number of Input Images parameter associated with this kernel defines the number of input images. Setting this parameter automatically adds or removes the number of input ports.

NOTE: The size of the output tensor object will be determined by the image supplied in the first input, all images must be of the same height, weight and pixel format.

Parameters

Direction

Name

Type

Description

In

Src_image

vx_image

The image to work (support pixel formats are VX_DF_IMAGE_S16 and VX_DF_IMAGE_U16)

Out

Dst_Tensor

vx_tensor

The 3 dimensional output tensor that contains the images.

Merge Tensor (outputAllocators.Tensor)

Description

Receives Tensor objects with the same dimensions as input and merges them into one tensor object with an additional dimension.

This kernel has the same result as this code snippet:

NOTE: The Number of Input Parts parameter associated with this kernel defines the number of inputs. Setting this parameter automatically adds or removes the number of input ports.

Parameters

# - indicates the input number (1, 2, 3, etc.)

Direction

Name

Type

Description

In

Start_Indexes_of_#

vx_uint32*

The start indexes from which to extract the view of the # input tensor objects.(include)

In

End_Indexes_of_#

vx_uint32*

The end indexes from which to extract the view of the # input tensor objects. (exclude)

In

Src_Tensor

vx_tensor

The input tensor object.

Out

Dst_Tensor

vx_tensor

The output tensor object created from the input views.

Split Tensor (outputAllocators.SplitTensor)

Description

Receives a Tensor object as input and splits it into a number of objects with different sizes.

This kernel has the same result as this code snippet:

NOTE: The Number of Output Parts parameter associated with this kernel defines the number of outputs. Setting this parameter automatically adds or removes the number of output ports.

Parameters

# - indicates the input number (1, 2, 3 etc.)

Direction

Name

Type

Description

In

Start_Indexes_of_#

vx_uint32*

The start indexes from which to extract the view of the # output Tensor object.(include)

In

End_Indexes_of_#

vx_uint32*

The end indexes from which to extract the view of the # output Tensor object. (exclude)

In

Src_Tensor

vx_tensor

The input Tensor object.

Out

Dst_Tensor

vx_tensor

The output Tensor object which created from the input views.

For more complete information about compiler optimizations, see our Optimization Notice.