The OpenVX Specification
dba1aa3
|
Implements the Table Lookup Image Kernel. The output image dimensions should be the same as the dimensions of the input image.
This kernel uses each pixel in an image to index into a LUT and put the indexed LUT value into the output image. The formats supported are VX_DF_IMAGE_U8
and VX_DF_IMAGE_S16
.
Functions | |
vx_node VX_API_CALL | vxTableLookupNode (vx_graph graph, vx_image input, vx_lut lut, vx_image output) |
[Graph] Creates a Table Lookup node. If a value from the input image is not present in the lookup table, the result is undefined. More... | |
vx_status VX_API_CALL | vxuTableLookup (vx_context context, vx_image input, vx_lut lut, vx_image output) |
[Immediate] Processes the image through the LUT. More... | |
vx_node VX_API_CALL vxTableLookupNode | ( | vx_graph | graph, |
vx_image | input, | ||
vx_lut | lut, | ||
vx_image | output | ||
) |
[Graph] Creates a Table Lookup node. If a value from the input image is not present in the lookup table, the result is undefined.
[in] | graph | The reference to the graph. |
[in] | input | The input image in VX_DF_IMAGE_U8 or VX_DF_IMAGE_S16 . |
[in] | lut | The LUT which is of type VX_TYPE_UINT8 if input image is VX_DF_IMAGE_U8 or VX_TYPE_INT16 if input image is VX_DF_IMAGE_S16 . |
[out] | output | The output image of the same type and size as the input image. |
vx_node
. vx_node | A node reference. Any possible errors preventing a successful creation should be checked using vxGetStatus . |
vx_status VX_API_CALL vxuTableLookup | ( | vx_context | context, |
vx_image | input, | ||
vx_lut | lut, | ||
vx_image | output | ||
) |
[Immediate] Processes the image through the LUT.
[in] | context | The reference to the overall context. |
[in] | input | The input image in VX_DF_IMAGE_U8 or VX_DF_IMAGE_S16 . |
[in] | lut | The LUT which is of type VX_TYPE_UINT8 if input image is VX_DF_IMAGE_U8 or VX_TYPE_INT16 if input image is VX_DF_IMAGE_S16 . |
[out] | output | The output image of the same type as the input image. |
vx_status_e
enumeration. VX_SUCCESS | Success |
* | An error occurred. See vx_status_e . |