Vision Apps User Guide
tivx_img_proc_kernels.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright (c) 2019 Texas Instruments Incorporated
4  *
5  * All rights reserved not granted herein.
6  *
7  * Limited License.
8  *
9  * Texas Instruments Incorporated grants a world-wide, royalty-free, non-exclusive
10  * license under copyrights and patents it now or hereafter owns or controls to make,
11  * have made, use, import, offer to sell and sell ("Utilize") this software subject to the
12  * terms herein. With respect to the foregoing patent license, such license is granted
13  * solely to the extent that any such patent is necessary to Utilize the software alone.
14  * The patent license shall not apply to any combinations which include this software,
15  * other than combinations with devices manufactured by or for TI ("TI Devices").
16  * No hardware patent is licensed hereunder.
17  *
18  * Redistributions must preserve existing copyright notices and reproduce this license
19  * (including the above copyright notice and the disclaimer and (if applicable) source
20  * code license limitations below) in the documentation and/or other materials provided
21  * with the distribution
22  *
23  * Redistribution and use in binary form, without modification, are permitted provided
24  * that the following conditions are met:
25  *
26  * * No reverse engineering, decompilation, or disassembly of this software is
27  * permitted with respect to any software provided in binary form.
28  *
29  * * any redistribution and use are licensed by TI for use only with TI Devices.
30  *
31  * * Nothing shall obligate TI to provide you with source code for the software
32  * licensed and provided to you in object code.
33  *
34  * If software source code is provided to you, modification and redistribution of the
35  * source code are permitted provided that the following conditions are met:
36  *
37  * * any redistribution and use of the source code, including any resulting derivative
38  * works, are licensed by TI for use only with TI Devices.
39  *
40  * * any redistribution and use of any object code compiled from the source code
41  * and any resulting derivative works, are licensed by TI for use only with TI Devices.
42  *
43  * Neither the name of Texas Instruments Incorporated nor the names of its suppliers
44  *
45  * may be used to endorse or promote products derived from this software without
46  * specific prior written permission.
47  *
48  * DISCLAIMER.
49  *
50  * THIS SOFTWARE IS PROVIDED BY TI AND TI'S LICENSORS "AS IS" AND ANY EXPRESS
51  * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
52  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
53  * IN NO EVENT SHALL TI AND TI'S LICENSORS BE LIABLE FOR ANY DIRECT, INDIRECT,
54  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
55  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
56  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
57  * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
58  * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
59  * OF THE POSSIBILITY OF SUCH DAMAGE.
60  *
61  */
62 
63 #ifndef TIVX_IMG_PROC_KERNELS_H_
64 #define TIVX_IMG_PROC_KERNELS_H_
65 
66 #include <VX/vx.h>
67 #include <VX/vx_kernels.h>
68 
69 #include "itidl_ti.h"
70 
71 #ifdef __cplusplus
72 extern "C" {
73 #endif
74 
90 #define TIVX_MODULE_NAME_IMG_PROC "img_proc"
91 
95 #define TIVX_KERNEL_IMG_PREPROCESS_NAME "com.ti.img_proc.img.preprocess"
96 
100 #define TIVX_KERNEL_OC_PRE_PROC_NAME "com.ti.img_proc.oc.pre.proc"
101 
105 #define TIVX_KERNEL_OC_POST_PROC_NAME "com.ti.img_proc.oc.post.proc"
106 
110 #define TIVX_KERNEL_OD_POSTPROCESS_NAME "com.ti.img_proc.od.postprocess"
111 
115 #define TIVX_KERNEL_DOF_PLANE_SEPERATION_NAME "com.ti.img_proc.dof.plane.seperation"
116 
120 #define TIVX_KERNEL_PIXEL_VISUALIZATION_NAME "com.ti.img_proc.pixel.visualization"
121 
125 #define TIVX_KERNEL_VISUAL_LOCALIZATION_NAME "com.ti.img_proc.visual.localization"
126 
130 #define TIVX_KERNEL_POSE_VISUALIZATION_NAME "com.ti.img_proc.pose.visualization"
131 
135 #define TIVX_KERNEL_IMG_MOSAIC_NAME "com.ti.img_proc.img.mosaic"
136 
137 
141 #define TIVX_KERNEL_DRAW_KEYPOINT_DETECTIONS_NAME "com.ti.img_proc.od.draw.keypoint.detections"
142 
146 #define TIVX_KERNEL_DRAW_BOX_DETECTIONS_NAME "com.ti.img_proc.od.draw.box.detections"
147 
151 #define TIVX_KERNEL_IMG_HIST_NAME "com.ti.img_proc.img.hist"
152 
156 #define TIVX_KERNEL_SFM_NAME "com.ti.img_proc.sfm"
157 
161 #define TIVX_KERNEL_DL_PRE_PROC_NAME "com.ti.img_proc.dl.pre.proc"
162 
166 #define TIVX_KERNEL_DL_COLOR_BLEND_NAME "com.ti.img_proc.dl.color.blend"
167 
171 #define TIVX_KERNEL_DL_DRAW_BOX_NAME "com.ti.img_proc.dl.draw.box"
172 
176 #define TIVX_KERNEL_DL_COLOR_CONVERT_NAME "com.ti.img_proc.dl.color.convert"
177 
182 /* Number of maximum output tensor for visualization purpose. motion/semantic/depth*/
183 #define TIVX_PIXEL_VIZ_MAX_TENSOR (3U)
184 
185 /*For semantic segmentation supported maximum class is 256 including background*/
186 /*For depth tensor output is U08, which makes for each value one different color has to be assigned, so each value is treated as different class*/
187 #define TIVX_PIXEL_VIZ_MAX_CLASS (256U)
188 
189 #if defined(SOC_J784S4)
190 #define TIVX_IMG_MOSAIC_MAX_INPUTS (16U)
191 #else
192 #define TIVX_IMG_MOSAIC_MAX_INPUTS (8U)
193 #endif
194 
195 #define TIVX_IMG_MOSAIC_MAX_CHANNELS (4U)
196 #define TIVX_IMG_MOSAIC_MAX_WINDOWS (TIVX_IMG_MOSAIC_MAX_INPUTS * TIVX_IMG_MOSAIC_MAX_CHANNELS)
197 
198 /* Maximum number of classes drawn on the image */
199 #define TIVX_DRAW_KEYPOINT_DETECTIONS_MAX_CLASSES (16)
200 #define TIVX_DRAW_BOX_DETECTIONS_MAX_CLASSES (128)
201 
202 #define TIVX_OC_MAX_CLASSES (10)
203 #define TIVX_MAX_PAST_POSES (16)
204 
205 /* Send this control command to reset the background image in app_tild_vl */
206 #define TIVX_IMG_PROC_POSE_VIZ_RESET_BACKGROUND (0xF00F)
207 #define TIVX_IMG_PROC_VIZ_LOC_RESET_POSE (0xFFEF)
208 
209 /* Supported tensor formats in dl-pre-proc */
210 #define TIVX_DL_PRE_PROC_TENSOR_FORMAT_RGB (0)
211 #define TIVX_DL_PRE_PROC_TENSOR_FORMAT_BGR (1)
212 
213 /* Supported channel ordering in dl-pre-proc */
214 #define TIVX_DL_PRE_PROC_CHANNEL_ORDER_NCHW (0)
215 #define TIVX_DL_PRE_PROC_CHANNEL_ORDER_NHWC (1)
216 
217 /* Supported crop indexes in dl-pre-proc */
218 #define TIVX_DL_PRE_PROC_IMAGE_CROP_TOP (0)
219 #define TIVX_DL_PRE_PROC_IMAGE_CROP_BOTTOM (1)
220 #define TIVX_DL_PRE_PROC_IMAGE_CROP_LEFT (2)
221 #define TIVX_DL_PRE_PROC_IMAGE_CROP_RIGHT (3)
222 
223 /* Macros to indicate max outputs, classes and colors in dl-draw-box */
224 #define TIVX_DL_DRAW_BOX_MAX_OUTPUTS (4U)
225 #define TIVX_DL_DRAW_BOX_MAX_CLASSES (256U)
226 #define TIVX_DL_DRAW_BOX_MAX_COLORS (3U)
227 #define TIVX_DL_DRAW_BOX_MAX_CLASS_NAME (64U)
228 #define TIVX_DL_DRAW_BOX_MAX_RECTANGLES (256U)
229 
230 /* Macros to indicate max outputs, classes and colors in dl-color-blend */
231 #define TIVX_DL_COLOR_BLEND_MAX_OUTPUTS (4U)
232 #define TIVX_DL_COLOR_BLEND_MAX_CLASSES (256U)
233 #define TIVX_DL_COLOR_BLEND_MAX_COLORS (3U)
234 
240 typedef struct{
242  vx_float32 mean_pixel[3];
243 
245  vx_float32 scale_val[3];
246 
248  vx_int32 pad_pixel[4];
249 
252 
254  vx_int32 ip_rgb_or_yuv;
255 
257  vx_int32 color_conv_flag;
258 
260  vx_uint32 clear_count;
261 
263  vx_int32 skip_flag;
264 
266 
272 typedef struct{
273 
275  sTIDL_IOBufDesc_t ioBufDesc;
276 
278 
279 
285 typedef struct{
286 
288  sTIDL_IOBufDesc_t ioBufDesc;
290  vx_int32 num_top_results;
291 
293 
299 typedef struct{
300 
302  vx_uint32 class_id[TIVX_OC_MAX_CLASSES];
304  vx_int32 num_top_results;
305 
307 
312 typedef struct {
314  vx_float32 focal_length;
315 
317  vx_int32 center_x;
318 
320  vx_int32 center_y;
321 
324 
327 
329  vx_int32 num_table_rows;
330 
332  vx_int32 num_max_det;
333 
335  vx_int32 width;
336 
338  vx_int32 height;
339 
341  vx_int32 dl_width;
342 
344  vx_int32 dl_height;
345 
347  vx_int32 points_per_line;
348 
350  vx_int32 num_keypoints;
351 
354 
356  vx_int32 skip_flag;
357 
359 
365 typedef struct{
367  vx_int32 width;
368 
370  vx_int32 height;
371 
373  vx_int32 pad_pixel[4];
374 
377 
379  vx_int32 skip_flag;
380 
382 
388 typedef struct{
389  /*voxel size in meters for x,y,z directionin meters*/
390  vx_int32 voxel_size[3];
391  /*map range minimum and maximum for x,y,z direction in meters[x/y/z][min/max]*/
392  vx_int32 map_range[3][2];
393  /*total number of voxels in image*/
394  vx_int32 num_voxels;
395  /*total number of features in map*/
396  vx_int32 num_map_feat;
397  /*Maximum number of match between current frame and map descriptors*/
398  vx_int32 max_feat_match;
399  /*Maximum number of features accounted in given frame of estimation*/
400  vx_int32 max_map_feat;
401  /*Is feature points calculated inside the algorithm or provided from outside. 0->inside,1-outside*/
403  /*max number of features possible in a frame*/
404  vx_int32 max_frame_feat;
405  /*initial estimate for location used in sampling the map data*/
406  vx_float32 init_est[3];
407  /*Input image width for depp leraning module */
408  vx_int32 dl_width;
409  /*Input image height for deep learning module */
410  vx_int32 dl_height;
411  /*Input image width in original resolution */
412  vx_int32 img_width;
413  /*Input image height in original resolution */
414  vx_int32 img_height;
415  /*Flag to tell input image is in fish eye domain, or rectilinear domain*/
416  vx_int32 is_ip_fe;
417  /*Input size for feature descriptor plane produced by TIDL including padding */
418  vx_int32 desc_plane_size;
419  /*Input descriptor (at lower resolution) scale in power of 2. Will come from TIDL outArgs */
421  /*upsampling filter scale in power of 2. Will come from external binary file of filter coefficients */
423  /*upsampling filter bias scale in power of 2. Derived quantity*/
424  vx_int32 bias_scale_pw2;
425  /*Output descriptor (at original resolution) scale in power of 2. Has to be sync with MAP descriptor scale*/
427  /*Input key point score (at original resolution) scale in power of 2. Will come from TIDL outArgs */
428  vx_int32 score_scale_pw2;
429  /*TIDL layer Id for low resolution descriptor head*/
431  /*TIDL layer Id for original resolution score head*/
432  vx_int32 score_lyr_id;
433  /*TIDL layer Id for low resolution descriptor head element type*/
435  /*TIDL layer Id for original resolution score head element type*/
437  /* NMS score threshold for feature point filtering */
438  vx_int32 score_th;
439  /* Start location for tidl tensor */
440  vx_int32 tidl_tensor_startx[2];
441  /* pitch for tidl tensor */
442  vx_int32 tidl_tensor_pitch[2];
443  /* Lens fish eye distortion correction table size*/
445  /*focal length of camera in x direction*/
446  vx_float32 fx;
447  /*focal length of camera in y direction*/
448  vx_float32 fy;
449  /*principal axis x location*/
450  vx_float32 cx;
451  /*principal axis y location*/
452  vx_float32 cy;
454  vx_int32 skip_flag;
455 
457 
458 typedef struct{
459  /*Image width for visualization*/
460  vx_int32 img_width;
461  /*Image height for visualization*/
462  vx_int32 img_height;
463  /*Image planes*/
464  vx_int32 img_num_planes;
465  /*Color counter*/
466  vx_int32 frame_cnt;
467  /*Matrix to convert 3D world location on top view image*/
468  vx_float32 projMat[3][4];
469  /*focal length of camera in x direction*/
470  vx_float32 fx;
471  /*focal length of camera in y direction*/
472  vx_float32 fy;
473  /*principal axis x location*/
474  vx_float32 cx;
475  /*principal axis y location*/
476  vx_float32 cy;
477  /*past values of x y locations to be drawn*/
478  vx_int16 past_xy[TIVX_MAX_PAST_POSES][2];
480  vx_int32 skip_flag;
483 
485 
490 typedef struct {
491 
494 
497 
499  vx_int32 num_classes[TIVX_PIXEL_VIZ_MAX_TENSOR];
500 
502  vx_int32 valid_region[TIVX_PIXEL_VIZ_MAX_CLASS][4];
503 
505  vx_int32 max_value[TIVX_PIXEL_VIZ_MAX_TENSOR];
506 
509 
511  vx_int32 output_width[TIVX_PIXEL_VIZ_MAX_TENSOR];
512 
514  vx_int32 output_height[TIVX_PIXEL_VIZ_MAX_TENSOR];
515 
517  vx_int32 output_buffer_offset[TIVX_PIXEL_VIZ_MAX_TENSOR];
518 
520  vx_int32 output_buffer_pitch[TIVX_PIXEL_VIZ_MAX_TENSOR];
521 
524 
526  vx_int32 input_img_pitch;
527 
530 
532  vx_int32 raw_tidl_op;
533 
536 
538  vx_int32 op_rgb_or_yuv;
539 
541  vx_int32 ip_rgb_or_yuv;
542 
544  vx_int32 skip_flag;
545 
547 
548 typedef struct {
550  vx_uint32 startX;
551 
553  vx_uint32 startY;
554 
556  vx_uint32 width;
557 
559  vx_uint32 height;
560 
562  vx_uint32 input_select;
563 
565  vx_uint32 channel_select;
566 
568  vx_uint32 enable_roi;
569 
571  vx_uint32 roiStartX;
572 
574  vx_uint32 roiStartY;
575 
577  vx_uint32 roiWidth;
578 
580  vx_uint32 roiHeight;
581 
583 
588 typedef struct {
589 
592 
594  vx_uint32 num_windows;
595 
597  vx_uint32 clear_count;
598 
600  vx_uint32 num_msc_instances;
601 
603  vx_uint32 msc_instance;
604 
606 
611 typedef struct {
612 
614  sTIDL_IOBufDesc_t ioBufDesc;
615 
617  vx_float32 viz_th;
618 
620  vx_int32 num_max_det;
621 
623  vx_int32 width;
624 
626  vx_int32 height;
627 
629  vx_int32 dl_width;
630 
632  vx_int32 dl_height;
633 
635  vx_int32 points_per_line;
636 
638  vx_int32 num_keypoints;
639 
642 
644  vx_int32 num_classes;
645 
647  vx_int32 skip_flag;
648 
650 
655 typedef struct {
656 
658  sTIDL_IOBufDesc_t ioBufDesc;
659 
661  vx_float32 viz_th;
662 
664  vx_int32 width;
665 
667  vx_int32 height;
668 
670  vx_uint8 color_map[TIVX_DRAW_BOX_DETECTIONS_MAX_CLASSES][3];
671 
673  vx_int32 num_classes;
674 
676  vx_int32 skip_flag;
677 
679 
684 typedef struct {
685 
687  vx_int32 skip_flag;
689  vx_int32 flowConfThr;
691  vx_int32 enAlgPtCldVis;
693  vx_int32 enAlgOGVis;
695  vx_float32 camera_pose[16];
696 
698 
703 typedef struct {
704 
706  vx_int32 skip_flag;
707 
708  /* Scale values to be applied per channel in the range of 0.0 to 1.0 */
709  vx_float32 scale[3];
710 
711  /* Mean value per channel to be subtracted, range depends on channel bit-depth */
712  vx_float32 mean[3];
713 
714  /* Channel ordering, 0-NCHW, 1-NHWC */
715  vx_int32 channel_order;
716 
717  /* Tensor format, 0-RGB, 1-BGR */
718  vx_int32 tensor_format;
719 
720  /* Crop values to be applied, 0-Top, 1-Bottom, 2-Right, 3-Left */
721  vx_int32 crop[4];
722 
724 
729 typedef struct {
730 
732  vx_int32 skip_flag;
733 
735  vx_int32 use_color_map;
736 
738  vx_int32 num_classes;
739 
742 
744 
749 typedef struct {
750 
756  vx_int32 pos[4];
757 
759  vx_float32 score;
760 
764  vx_int32 class_id;
765 
767 
772 typedef struct {
773 
775  vx_int32 skip_flag;
776 
778  vx_int32 use_color_map;
779 
781  vx_int32 num_classes;
782 
785 
790 
795 
797 
798 /*********************************
799  * Functions
800  *********************************/
801 
806 void tivxImgProcLoadKernels(vx_context context);
807 
812 void tivxImgProcUnLoadKernels(vx_context context);
813 
819 
825 
831 
837 
843 
849 
855 
861 
866 vx_kernel tivxAddKernelPixelViz(vx_context context, vx_int32 num_output_tensors);
867 
872 vx_kernel tivxAddKernelImgMosaic(vx_context context, vx_int32 num_inputs);
873 
879 
880 #ifdef __cplusplus
881 }
882 #endif
883 
884 #endif /* TIVX_IMG_PROC_KERNELS_H_ */
vx_int32 num_voxels
Definition: tivx_img_proc_kernels.h:394
vx_int32 height
Definition: tivx_img_proc_kernels.h:667
vx_int32 width
Definition: tivx_img_proc_kernels.h:367
vx_int32 input_img_offset
Definition: tivx_img_proc_kernels.h:523
vx_int32 color_conv_flag
Definition: tivx_img_proc_kernels.h:257
vx_int32 skip_flag
Definition: tivx_img_proc_kernels.h:544
vx_int32 num_classes
Definition: tivx_img_proc_kernels.h:673
vx_uint32 roiHeight
Definition: tivx_img_proc_kernels.h:580
vx_int32 num_output_tensors
Definition: tivx_img_proc_kernels.h:496
vx_int32 num_classes
Definition: tivx_img_proc_kernels.h:738
vx_int32 score_th
Definition: tivx_img_proc_kernels.h:438
vx_int32 output_buffer_offset
Definition: tivx_img_proc_kernels.h:353
vx_int32 desc_plane_size
Definition: tivx_img_proc_kernels.h:418
vx_int32 skip_flag
Definition: tivx_img_proc_kernels.h:775
vx_uint32 clear_count
Definition: tivx_img_proc_kernels.h:597
vx_int32 center_y
Definition: tivx_img_proc_kernels.h:320
void tivxImgProcUnLoadKernels(vx_context context)
Used for the Application to unload the img_proc kernels from the context.
vx_float32 viz_th
Definition: tivx_img_proc_kernels.h:661
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_int32 is_ip_fe
Definition: tivx_img_proc_kernels.h:416
vx_int32 lo_res_desc_lyr_id
Definition: tivx_img_proc_kernels.h:430
vx_uint32 height
Definition: tivx_img_proc_kernels.h:559
Definition: tivx_img_proc_kernels.h:240
DL draw box to be used with DL-RT.
Definition: tivx_img_proc_kernels.h:772
vx_float32 focal_length
Definition: tivx_img_proc_kernels.h:314
vx_float32 cx
Definition: tivx_img_proc_kernels.h:450
vx_int32 enAlgOGVis
Definition: tivx_img_proc_kernels.h:693
#define TIVX_DL_DRAW_BOX_MAX_CLASS_NAME
Definition: tivx_img_proc_kernels.h:227
#define TIVX_PIXEL_VIZ_MAX_TENSOR
Definition: tivx_img_proc_kernels.h:183
vx_int32 max_frame_feat
Definition: tivx_img_proc_kernels.h:404
vx_float32 cx
Definition: tivx_img_proc_kernels.h:474
sTIDL_IOBufDesc_t ioBufDesc
Definition: tivx_img_proc_kernels.h:614
vx_int32 skip_flag
Definition: tivx_img_proc_kernels.h:647
#define TIVX_MAX_PAST_POSES
Definition: tivx_img_proc_kernels.h:203
vx_int32 width
Definition: tivx_img_proc_kernels.h:664
vx_float32 viz_th
Definition: tivx_img_proc_kernels.h:617
vx_int32 score_scale_pw2
Definition: tivx_img_proc_kernels.h:428
vx_uint32 clear_count
Definition: tivx_img_proc_kernels.h:260
sTIDL_IOBufDesc_t ioBufDesc
Definition: tivx_img_proc_kernels.h:288
#define TIVX_OC_MAX_CLASSES
Definition: tivx_img_proc_kernels.h:202
vx_float32 fy
Definition: tivx_img_proc_kernels.h:448
void tivxRegisterImgProcTargetC66Kernels(void)
Function to register IMG_PROC Kernels on the C66x Target.
vx_uint32 channel_select
Definition: tivx_img_proc_kernels.h:565
vx_int32 num_max_det
Definition: tivx_img_proc_kernels.h:332
vx_int32 skip_flag
Definition: tivx_img_proc_kernels.h:480
Definition: tivx_img_proc_kernels.h:272
Definition: tivx_img_proc_kernels.h:299
vx_int32 class_id
Definition: tivx_img_proc_kernels.h:764
void tivxRegisterImgProcTargetC71Kernels(void)
Function to register IMG_PROC Kernels on the C71 Target.
vx_int32 enAlgPtCldVis
Definition: tivx_img_proc_kernels.h:691
vx_int32 use_color_map
Definition: tivx_img_proc_kernels.h:778
vx_int32 input_img_plane_pitch
Definition: tivx_img_proc_kernels.h:529
vx_int32 img_num_planes
Definition: tivx_img_proc_kernels.h:464
vx_uint32 startX
Definition: tivx_img_proc_kernels.h:550
vx_int32 dl_height
Definition: tivx_img_proc_kernels.h:410
vx_int32 score_lyr_id
Definition: tivx_img_proc_kernels.h:432
sTIDL_IOBufDesc_t ioBufDesc
Definition: tivx_img_proc_kernels.h:658
vx_int32 img_height
Definition: tivx_img_proc_kernels.h:414
void tivxUnRegisterImgProcTargetC66Kernels(void)
Function to un-register IMG_PROC Kernels on the C66x Target.
#define TIVX_IMG_MOSAIC_MAX_WINDOWS
Definition: tivx_img_proc_kernels.h:196
vx_int32 filter_scale_pw2
Definition: tivx_img_proc_kernels.h:422
vx_int32 inter_center_y_fact
Definition: tivx_img_proc_kernels.h:326
vx_int32 img_width
Definition: tivx_img_proc_kernels.h:460
void tivxRegisterImgProcTargetR5FKernels(void)
Function to register IMG_PROC Kernels on the R5F Target.
vx_int32 points_per_line
Definition: tivx_img_proc_kernels.h:635
vx_int32 raw_tidl_op
Definition: tivx_img_proc_kernels.h:532
vx_uint32 roiStartX
Definition: tivx_img_proc_kernels.h:571
#define TIVX_DL_DRAW_BOX_MAX_RECTANGLES
Definition: tivx_img_proc_kernels.h:228
vx_kernel tivxAddKernelImgMosaic(vx_context context, vx_int32 num_inputs)
Used by the application to create the mosaic kernel from the context.
vx_int32 is_feat_comp_ext
Definition: tivx_img_proc_kernels.h:402
vx_int32 flowConfThr
Definition: tivx_img_proc_kernels.h:689
vx_float32 cy
Definition: tivx_img_proc_kernels.h:452
vx_int32 img_width
Definition: tivx_img_proc_kernels.h:412
vx_int32 points_per_line
Definition: tivx_img_proc_kernels.h:347
vx_int32 tidl_8bit_16bit_flag
Definition: tivx_img_proc_kernels.h:251
Definition: tivx_img_proc_kernels.h:588
vx_int32 num_classes
Definition: tivx_img_proc_kernels.h:644
#define TIVX_DRAW_BOX_DETECTIONS_MAX_CLASSES
Definition: tivx_img_proc_kernels.h:200
Definition: tivx_img_proc_kernels.h:388
vx_int32 input_img_pitch
Definition: tivx_img_proc_kernels.h:526
#define TIVX_DL_DRAW_BOX_MAX_CLASSES
Definition: tivx_img_proc_kernels.h:225
void tivxUnRegisterImgProcTargetC71Kernels(void)
Function to un-register IMG_PROC Kernels on the C71 Target.
vx_int32 height
Definition: tivx_img_proc_kernels.h:626
sTIDL_IOBufDesc_t ioBufDesc
Definition: tivx_img_proc_kernels.h:275
void tivxUnRegisterImgProcTargetR5FKernels(void)
Function to un-register IMG_PROC Kernels on the R5F Target.
vx_int32 dl_height
Definition: tivx_img_proc_kernels.h:632
vx_int32 dl_width
Definition: tivx_img_proc_kernels.h:341
vx_int32 num_top_results
Definition: tivx_img_proc_kernels.h:290
vx_int32 frame_cnt
Definition: tivx_img_proc_kernels.h:466
vx_float32 fy
Definition: tivx_img_proc_kernels.h:472
vx_int32 skip_flag
Definition: tivx_img_proc_kernels.h:732
void tivxUnRegisterImgProcTargetA72Kernels(void)
Function to un-register IMG_PROC Kernels on the A72 Target.
vx_int32 inter_center_x_fact
Definition: tivx_img_proc_kernels.h:323
vx_int32 channel_order
Definition: tivx_img_proc_kernels.h:715
vx_int32 num_map_feat
Definition: tivx_img_proc_kernels.h:396
vx_int32 max_map_feat
Definition: tivx_img_proc_kernels.h:400
vx_uint32 enable_roi
Definition: tivx_img_proc_kernels.h:568
vx_int32 lo_res_desc_elm_type
Definition: tivx_img_proc_kernels.h:434
void tivxRegisterImgProcTargetA72Kernels(void)
Function to register IMG_PROC Kernels on the A72 Target.
vx_int32 dl_width
Definition: tivx_img_proc_kernels.h:629
void tivxImgProcLoadKernels(vx_context context)
Used for the Application to load the img_proc kernels into the context.
vx_int32 ip_rgb_or_yuv
Definition: tivx_img_proc_kernels.h:541
vx_int32 num_max_det
Definition: tivx_img_proc_kernels.h:620
Definition: tivx_img_proc_kernels.h:611
vx_int32 img_height
Definition: tivx_img_proc_kernels.h:462
Definition: tivx_img_proc_kernels.h:490
DL rectangles to be used with DL Draw Box.
Definition: tivx_img_proc_kernels.h:749
vx_int32 max_background_image_copy
Definition: tivx_img_proc_kernels.h:482
vx_int32 tidl_8bit_16bit_flag
Definition: tivx_img_proc_kernels.h:376
vx_uint32 roiStartY
Definition: tivx_img_proc_kernels.h:574
vx_uint32 width
Definition: tivx_img_proc_kernels.h:556
vx_int32 lens_dist_table_size
Definition: tivx_img_proc_kernels.h:444
vx_int32 skip_flag
Definition: tivx_img_proc_kernels.h:263
vx_int32 num_keypoints
Definition: tivx_img_proc_kernels.h:350
vx_int32 skip_flag
Definition: tivx_img_proc_kernels.h:676
vx_int32 num_keypoints
Definition: tivx_img_proc_kernels.h:638
Definition: tivx_img_proc_kernels.h:365
vx_int32 lo_res_desc_scale_pw2
Definition: tivx_img_proc_kernels.h:420
vx_int32 width
Definition: tivx_img_proc_kernels.h:623
vx_int32 tidl_8bit_16bit_flag
Definition: tivx_img_proc_kernels.h:535
#define TIVX_DL_COLOR_BLEND_MAX_CLASSES
Definition: tivx_img_proc_kernels.h:232
vx_int32 width
Definition: tivx_img_proc_kernels.h:335
vx_int32 dl_width
Definition: tivx_img_proc_kernels.h:408
vx_int32 use_color_map
Definition: tivx_img_proc_kernels.h:735
vx_uint32 num_windows
Definition: tivx_img_proc_kernels.h:594
vx_int32 dl_height
Definition: tivx_img_proc_kernels.h:344
void tivxImgMosaicParamsSetDefaults(tivxImgMosaicParams *prms)
Set default parameters for tivxImgMosaicParams.
vx_int32 skip_flag
Definition: tivx_img_proc_kernels.h:706
vx_int32 center_x
Definition: tivx_img_proc_kernels.h:317
vx_int32 num_classes
Definition: tivx_img_proc_kernels.h:781
vx_int32 num_input_tensors
Definition: tivx_img_proc_kernels.h:493
vx_uint32 msc_instance
Definition: tivx_img_proc_kernels.h:603
vx_uint32 roiWidth
Definition: tivx_img_proc_kernels.h:577
vx_int32 max_feat_match
Definition: tivx_img_proc_kernels.h:398
vx_int32 num_table_rows
Definition: tivx_img_proc_kernels.h:329
#define TIVX_DRAW_KEYPOINT_DETECTIONS_MAX_CLASSES
Definition: tivx_img_proc_kernels.h:199
vx_int32 bias_scale_pw2
Definition: tivx_img_proc_kernels.h:424
#define TIVX_PIXEL_VIZ_MAX_CLASS
Definition: tivx_img_proc_kernels.h:187
vx_int32 score_lyr_elm_type
Definition: tivx_img_proc_kernels.h:436
SFM frame level control parameter.
Definition: tivx_img_proc_kernels.h:684
vx_int32 skip_flag
Definition: tivx_img_proc_kernels.h:379
vx_int32 skip_flag
Definition: tivx_img_proc_kernels.h:454
vx_int32 skip_flag
Definition: tivx_img_proc_kernels.h:687
Definition: tivx_img_proc_kernels.h:548
vx_int32 op_rgb_or_yuv
Definition: tivx_img_proc_kernels.h:538
Definition: tivx_img_proc_kernels.h:285
DL Pre processing to be used with DL-RT.
Definition: tivx_img_proc_kernels.h:703
Definition: tivx_img_proc_kernels.h:312
vx_float32 fx
Definition: tivx_img_proc_kernels.h:470
vx_float32 score
Definition: tivx_img_proc_kernels.h:759
vx_int32 ip_rgb_or_yuv
Definition: tivx_img_proc_kernels.h:254
#define TIVX_DL_DRAW_BOX_MAX_COLORS
Definition: tivx_img_proc_kernels.h:226
vx_float32 fx
Definition: tivx_img_proc_kernels.h:446
vx_int32 tensor_format
Definition: tivx_img_proc_kernels.h:718
vx_uint32 num_msc_instances
Definition: tivx_img_proc_kernels.h:600
vx_int32 height
Definition: tivx_img_proc_kernels.h:338
vx_float32 cy
Definition: tivx_img_proc_kernels.h:476
vx_int32 num_top_results
Definition: tivx_img_proc_kernels.h:304
vx_uint32 input_select
Definition: tivx_img_proc_kernels.h:562
Definition: tivx_img_proc_kernels.h:458
vx_int32 hi_res_desc_scale_pw2
Definition: tivx_img_proc_kernels.h:426
Definition: tivx_img_proc_kernels.h:655
#define TIVX_DL_COLOR_BLEND_MAX_COLORS
Definition: tivx_img_proc_kernels.h:233
vx_uint32 startY
Definition: tivx_img_proc_kernels.h:553
vx_int32 height
Definition: tivx_img_proc_kernels.h:370
DL color blend to be used with DL-RT.
Definition: tivx_img_proc_kernels.h:729
vx_int32 skip_flag
Definition: tivx_img_proc_kernels.h:356