The OpenVX Specification  dba1aa3
Tensor TableLookUp

Detailed Description

Performs LUT on element values in the input tensor data.

This kernel uses each element in a tensor to index into a LUT and put the indexed LUT value into the output tensor. The tensor types supported are VX_TYPE_UINT8 and VX_TYPE_INT16. Signed inputs are cast to unsigned before used as input indexes to the LUT.

Functions

vx_node VX_API_CALL vxTensorTableLookupNode (vx_graph graph, vx_tensor input1, vx_lut lut, vx_tensor output)
 [Graph] Performs LUT on element values in the input tensor data. More...
 
vx_status VX_API_CALL vxuTensorTableLookup (vx_context context, vx_tensor input1, vx_lut lut, vx_tensor output)
 [Immediate] Performs LUT on element values in the input tensor data. More...
 

Function Documentation

vx_node VX_API_CALL vxTensorTableLookupNode ( vx_graph  graph,
vx_tensor  input1,
vx_lut  lut,
vx_tensor  output 
)

[Graph] Performs LUT on element values in the input tensor data.

Parameters
[in]graphThe handle to the graph.
[in]input1Input tensor data. Implementations must support input tensor data type VX_TYPE_INT16 with fixed_point_position 8, and tensor data types VX_TYPE_UINT8, with fixed_point_position 0.
[in]lutThe look-up table to use, of type vx_lut. The elements of input1 are treated as unsigned integers to determine an index into the look-up table. The data type of the items in the look-up table must match that of the output tensor.
[out]outputThe output tensor data with the same dimensions as the input tensor data.
Returns
vx_node.
A node reference vx_node. Any possible errors preventing a successful creation should be checked using vxGetStatus.
vx_status VX_API_CALL vxuTensorTableLookup ( vx_context  context,
vx_tensor  input1,
vx_lut  lut,
vx_tensor  output 
)

[Immediate] Performs LUT on element values in the input tensor data.

Parameters
[in]contextThe reference to the overall context.
[in]input1Input tensor data. Implementations must support input tensor data type VX_TYPE_INT16 with fixed_point_position 8, and tensor data types VX_TYPE_UINT8, with fixed_point_position 0.
[in]lutThe look-up table to use, of type vx_lut. The elements of input1 are treated as unsigned integers to determine an index into the look-up table. The data type of the items in the look-up table must match that of the output tensor.
[out]outputThe output tensor data with the same dimensions as the input tensor data.
Returns
A vx_status_e enumeration.
Return values
VX_SUCCESSSuccess
*An error occurred. See vx_status_e.