![]() |
Vision Apps User Guide
|
This section documents the kernels defined for Image Pre/Post Processing. More...
Data Structures | |
struct | tivxImgPreProcParams |
struct | tivxODPostProcParams |
struct | tivxDofPlaneSepParams |
struct | tivxVisualLocalizationParams |
struct | tivxPixelVizParams |
struct | tivxImgMosaicParams |
struct | tivxODDrawDetectionsParams |
Macros | |
#define | TIVX_MODULE_NAME_IMG_PROC "img_proc" |
OpenVX module name. More... | |
#define | TIVX_PIXEL_VIZ_MAX_TENSOR (3U) |
Functions | |
void | tivxImgProcLoadKernels (vx_context context) |
Used for the Application to load the img_proc kernels into the context. More... | |
void | tivxImgProcUnLoadKernels (vx_context context) |
Used for the Application to unload the img_proc kernels from the context. More... | |
vx_kernel | tivxAddKernelPixelViz (vx_context context, vx_int32 num_output_tensors) |
Used for the Application to create the pix viz kernel from the context. More... | |
vx_kernel | tivxAddKernelImgMosaic (vx_context context, vx_int32 num_inputs) |
Used by the application to create the mosaic kernel from the context. More... | |
VX_API_ENTRY vx_node VX_API_CALL | tivxODPostProcNode (vx_graph graph, vx_array configuration, vx_tensor input_key_points, vx_tensor fwd_table_tensor, vx_tensor rev_table_tensor, vx_tensor kp_tensor, vx_tensor kp_valid) |
Creates a Post processing Node for Parking Spot Detection Algorithm. More... | |
VX_API_ENTRY vx_node VX_API_CALL | tivxDofPlaneSepNode (vx_graph graph, vx_array configuration, vx_tensor in_dof, vx_tensor out_planes) |
Creates a Dense Optical Flow (Dof) 3 plane creation Node. More... | |
VX_API_ENTRY vx_node VX_API_CALL | tivxPixelVizNode (vx_graph graph, vx_kernel kernel, vx_user_data_object configuration, vx_user_data_object tidl_out_args, vx_image in_img, vx_int32 num_output_tensors, vx_tensor detection[], vx_image out_img[]) |
Creates an image with pixel level detection/label overlayed. More... | |
VX_API_ENTRY vx_node VX_API_CALL | tivxVisualLocalizationNode (vx_graph graph, vx_array configuration, vx_tensor voxel_info, vx_tensor map_3d_points, vx_tensor map_desc, vx_tensor ext_feat_pt, vx_tensor ext_feat_desc, vx_tensor up_samp_wt, vx_tensor lens_dist_table, vx_matrix pose_tensor) |
Estimating the camera location from captured image and map information. More... | |
VX_API_ENTRY vx_node VX_API_CALL | tivxPoseVizNode (vx_graph graph, vx_array configuration, vx_matrix pose_tensor, vx_image output_image) |
Visualization of the estimated location. More... | |
VX_API_ENTRY vx_node VX_API_CALL | tivxImgMosaicNode (vx_graph graph, vx_kernel kernel, vx_user_data_object config, vx_image output_image, vx_object_array input_arr[], vx_uint32 num_inputs) |
Image Mosiac Node. More... | |
VX_API_ENTRY vx_node VX_API_CALL | tivxODDrawDetectionsNode (vx_graph graph, vx_user_data_object configuration, vx_tensor kp_tensor, vx_tensor kp_valid, vx_tensor input_tensor, vx_image input_image, vx_image output_image) |
OD Draw Detections Node. More... | |
This section documents the kernels defined for Image Pre/Post Processing.
#define TIVX_MODULE_NAME_IMG_PROC "img_proc" |
OpenVX module name.
#define TIVX_PIXEL_VIZ_MAX_TENSOR (3U) |
void tivxImgProcLoadKernels | ( | vx_context | context | ) |
Used for the Application to load the img_proc kernels into the context.
void tivxImgProcUnLoadKernels | ( | vx_context | context | ) |
Used for the Application to unload the img_proc kernels from the context.
vx_kernel tivxAddKernelPixelViz | ( | vx_context | context, |
vx_int32 | num_output_tensors | ||
) |
Used for the Application to create the pix viz kernel from the context.
vx_kernel tivxAddKernelImgMosaic | ( | vx_context | context, |
vx_int32 | num_inputs | ||
) |
Used by the application to create the mosaic kernel from the context.
VX_API_ENTRY vx_node VX_API_CALL tivxODPostProcNode | ( | vx_graph | graph, |
vx_array | configuration, | ||
vx_tensor | input_key_points, | ||
vx_tensor | fwd_table_tensor, | ||
vx_tensor | rev_table_tensor, | ||
vx_tensor | kp_tensor, | ||
vx_tensor | kp_valid | ||
) |
Creates a Post processing Node for Parking Spot Detection Algorithm.
Node does generates interpolated points on parking spot periphery from four corners points detected from deep learning based algorithm
[in] | graph | The reference to the graph. |
[in] | configuration | Array element type tivxODPostProcParams, max number of elements = 1 |
[in] | input_key_points | Interleaved 4 corner points of multiple parking spots. |
[in] | fwd_table_tensor | Angular map table for rectilinear angle to fish eye angle |
[in] | rev_table_tensor | Angular map table for fish eye angle to rectilinear angle |
[in] | kp_tensor | output interpolated points on periphery of parking spot |
[in] | kp_valid | output flag of validity for each parking spot |
vx_node | A node reference. Any possible errors preventing a successful creation should be checked using vxGetStatus |
VX_API_ENTRY vx_node VX_API_CALL tivxDofPlaneSepNode | ( | vx_graph | graph, |
vx_array | configuration, | ||
vx_tensor | in_dof, | ||
vx_tensor | out_planes | ||
) |
Creates a Dense Optical Flow (Dof) 3 plane creation Node.
Node does creation of three planes (each of 8 bit) from the raw 32 bit output from Dof hardware accelerator 3 planes corresponds to horizontal, vertical flow vectors and confidence
[in] | graph | The reference to the graph. |
[in] | configuration | Array element type tivxDofPlaneSepParams, max number of elements = 1 |
[in] | in_dof | input dof buffer |
[in] | out_planes | output planes. |
vx_node | A node reference. Any possible errors preventing a successful creation should be checked using vxGetStatus |
VX_API_ENTRY vx_node VX_API_CALL tivxPixelVizNode | ( | vx_graph | graph, |
vx_kernel | kernel, | ||
vx_user_data_object | configuration, | ||
vx_user_data_object | tidl_out_args, | ||
vx_image | in_img, | ||
vx_int32 | num_output_tensors, | ||
vx_tensor | detection[], | ||
vx_image | out_img[] | ||
) |
Creates an image with pixel level detection/label overlayed.
Node does blending of input image with pixel level detection/classification data for visualization purpose.
[in] | graph | The reference to the graph. |
[in] | kernel | The reference to openvx kernel |
[in] | configuration | Array element type tivxODPostProcParams, max number of elements = 1 |
[in] | tidl_out_args | out args of tidl to receive the scale values of each output tensor |
[in] | in_img | Input image. |
[in] | num_output_tensors | Number of output tensors/images. |
[in] | detection | Detection planes |
[out] | out_img | ovelayed output image |
vx_node | A node reference. Any possible errors preventing a successful creation should be checked using vxGetStatus |
VX_API_ENTRY vx_node VX_API_CALL tivxVisualLocalizationNode | ( | vx_graph | graph, |
vx_array | configuration, | ||
vx_tensor | voxel_info, | ||
vx_tensor | map_3d_points, | ||
vx_tensor | map_desc, | ||
vx_tensor | ext_feat_pt, | ||
vx_tensor | ext_feat_desc, | ||
vx_tensor | up_samp_wt, | ||
vx_tensor | lens_dist_table, | ||
vx_matrix | pose_tensor | ||
) |
Estimating the camera location from captured image and map information.
Node estimates the location in 3d world co-ordinate
[in] | graph | The reference to the graph. |
[in] | configuration | Array element type tivxODPostProcParams, max number of elements = 1 |
[in] | voxel_info | Voxel info. voxels are cuboid in real world |
[in] | map_3d_points | Map 3D points |
[in] | map_desc | Map descriptors |
[in] | ext_feat_pt | Externally computed feature points(x,y) |
[in] | ext_feat_desc | Feature descriptor for each feature point |
[in] | up_samp_wt | Filter weights for upsampling |
[in] | lens_dist_table | Fish eye lens distortion table |
[out] | pose_tensor | Output pose matrix of size 3x4 |
vx_node | A node reference. Any possible errors preventing a successful creation should be checked using vxGetStatus |
VX_API_ENTRY vx_node VX_API_CALL tivxPoseVizNode | ( | vx_graph | graph, |
vx_array | configuration, | ||
vx_matrix | pose_tensor, | ||
vx_image | output_image | ||
) |
Visualization of the estimated location.
Node generated an image with visualization of X, Y location of 3D world on image plane
[in] | graph | The reference to the graph. |
[in] | configuration | Array element type tivxODPostProcParams, max number of elements = 1 |
[in] | pose_tensor | Input pose matrix created by tivxVisualLocalizationNode Node |
[out] | output_image | Output image |
vx_node | A node reference. Any possible errors preventing a successful creation should be checked using vxGetStatus |
VX_API_ENTRY vx_node VX_API_CALL tivxImgMosaicNode | ( | vx_graph | graph, |
vx_kernel | kernel, | ||
vx_user_data_object | config, | ||
vx_image | output_image, | ||
vx_object_array | input_arr[], | ||
vx_uint32 | num_inputs | ||
) |
Image Mosiac Node.
Used to mosiac a list of images onto to a sigle image
[in] | graph | The reference to the graph. |
[in] | kernel | The reference to the openvx kernel |
[in] | config | Mosaic configuration of type tivxImgMosaicParams |
[out] | output_image | Output image of type vx_image |
[in] | input_arr | Array of inputs |
[in] | num_inputs | Number of inputs, i.e number of elements in input_arr[] |
vx_node | A node reference. Any possible errors preventing a successful creation should be checked using vxGetStatus |
VX_API_ENTRY vx_node VX_API_CALL tivxODDrawDetectionsNode | ( | vx_graph | graph, |
vx_user_data_object | configuration, | ||
vx_tensor | kp_tensor, | ||
vx_tensor | kp_valid, | ||
vx_tensor | input_tensor, | ||
vx_image | input_image, | ||
vx_image | output_image | ||
) |
OD Draw Detections Node.
Used to draw detections on an image
[in] | graph | reference to the graph. |
[in] | configuration | configuration of type tivxODDrawDetectionParams |
[in] | kp_tensor | keypoint tensor from OD postprocessing node |
[in] | kp_valid | valid keypoints tensor from OD postprocessing node |
[in] | input_tensor | TIDL output tensor of detected key points |
[in] | input_image | Input image to draw detections |
[out] | output_image | Output image with detections drawn |
vx_node | A node reference. Any possible errors preventing a successful creation should be checked using vxGetStatus |