c66/VXLIB_trackFeaturesLK_i8u.h
Go to the documentation of this file.
1 /*******************************************************************************
2 **+--------------------------------------------------------------------------+**
3 **| **** |**
4 **| **** |**
5 **| ******o*** |**
6 **| ********_///_**** |**
7 **| ***** /_//_/ **** |**
8 **| ** ** (__/ **** |**
9 **| ********* |**
10 **| **** |**
11 **| *** |**
12 **| |**
13 **| Copyright (c) 2016 - 2017 Texas Instruments Incorporated |**
14 **| |**
15 **| All rights reserved not granted herein. |**
16 **| |**
17 **| Limited License. |**
18 **| |**
19 **| Texas Instruments Incorporated grants a world-wide, royalty-free, |**
20 **| non-exclusive license under copyrights and patents it now or |**
21 **| hereafter owns or controls to make, have made, use, import, offer to |**
22 **| sell and sell ("Utilize") this software subject to the terms herein. |**
23 **| With respect to the foregoing patent license, such license is granted |**
24 **| solely to the extent that any such patent is necessary to Utilize the |**
25 **| software alone. The patent license shall not apply to any |**
26 **| combinations which include this software, other than combinations |**
27 **| with devices manufactured by or for TI ("TI Devices"). No hardware |**
28 **| patent is licensed hereunder. |**
29 **| |**
30 **| Redistributions must preserve existing copyright notices and |**
31 **| reproduce this license (including the above copyright notice and the |**
32 **| disclaimer and (if applicable) source code license limitations below) |**
33 **| in the documentation and/or other materials provided with the |**
34 **| distribution |**
35 **| |**
36 **| Redistribution and use in binary form, without modification, are |**
37 **| permitted provided that the following conditions are met: |**
38 **| |**
39 **| * No reverse engineering, decompilation, or disassembly of this |**
40 **| software is permitted with respect to any software provided in binary |**
41 **| form. |**
42 **| |**
43 **| * any redistribution and use are licensed by TI for use only with |**
44 **| TI Devices. |**
45 **| |**
46 **| * Nothing shall obligate TI to provide you with source code for |**
47 **| the software licensed and provided to you in object code. |**
48 **| |**
49 **| If software source code is provided to you, modification and |**
50 **| redistribution of the source code are permitted provided that the |**
51 **| following conditions are met: |**
52 **| |**
53 **| * any redistribution and use of the source code, including any |**
54 **| resulting derivative works, are licensed by TI for use only with TI |**
55 **| Devices. |**
56 **| |**
57 **| * any redistribution and use of any object code compiled from the |**
58 **| source code and any resulting derivative works, are licensed by TI |**
59 **| for use only with TI Devices. |**
60 **| |**
61 **| Neither the name of Texas Instruments Incorporated nor the names of |**
62 **| its suppliers may be used to endorse or promote products derived from |**
63 **| this software without specific prior written permission. |**
64 **| |**
65 **| DISCLAIMER. |**
66 **| |**
67 **| THIS SOFTWARE IS PROVIDED BY TI AND TI'S LICENSORS "AS IS" AND ANY |**
68 **| EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |**
69 **| IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |**
70 **| PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL TI AND TI'S LICENSORS BE |**
71 **| LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |**
72 **| CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |**
73 **| SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR |**
74 **| BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |**
75 **| WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE |**
76 **| OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, |**
77 **| EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |**
78 **+--------------------------------------------------------------------------+**
79 *******************************************************************************/
80 
81 #ifndef VXLIB_TRACKFEATURESLK_I8U_H_
82 #define VXLIB_TRACKFEATURESLK_I8U_H_ 1
83 
84 #include "../../../common/VXLIB_types.h"
85 
88 /* @{ */
128 VXLIB_STATUS VXLIB_trackFeaturesLK_i8u(const uint8_t old_image[restrict],
129  const VXLIB_bufParams2D_t *old_image_addr,
130  const uint8_t new_image[restrict],
131  const VXLIB_bufParams2D_t *new_image_addr,
132  const int16_t old_gradX[restrict],
133  const VXLIB_bufParams2D_t *old_gradX_addr,
134  const int16_t old_gradY[restrict],
135  const VXLIB_bufParams2D_t *old_gradY_addr,
136  __float2_t old_points[restrict],
137  __float2_t new_points[restrict],
138  uint8_t tracking_status[restrict],
139  uint32_t num_points,
140  uint32_t max_iters,
141  VXLIB_F32 epsilon,
142  VXLIB_F32 scale,
143  uint8_t window_size,
144  uint8_t level,
145  uint8_t termination,
146  uint8_t scratch[restrict],
147  uint32_t scratch_size);
148 
184 VXLIB_STATUS VXLIB_trackFeaturesLK_i8u_checkParams(const uint8_t old_image[restrict],
185  const VXLIB_bufParams2D_t *old_image_addr,
186  const uint8_t new_image[restrict],
187  const VXLIB_bufParams2D_t *new_image_addr,
188  const int16_t old_gradX[restrict],
189  const VXLIB_bufParams2D_t *old_gradX_addr,
190  const int16_t old_gradY[restrict],
191  const VXLIB_bufParams2D_t *old_gradY_addr,
192  const __float2_t old_points[restrict],
193  const __float2_t new_points[restrict],
194  const uint8_t tracking_status[restrict],
195  uint32_t num_points,
196  uint32_t max_iters,
197  VXLIB_F32 epsilon,
198  VXLIB_F32 scale,
199  uint8_t window_size,
200  uint8_t level,
201  uint8_t termination,
202  const uint8_t scratch[restrict],
203  uint32_t scratch_size);
205 #endif
206 
VXLIB_STATUS VXLIB_trackFeaturesLK_i8u(const uint8_t old_image[restrict], const VXLIB_bufParams2D_t *old_image_addr, const uint8_t new_image[restrict], const VXLIB_bufParams2D_t *new_image_addr, const int16_t old_gradX[restrict], const VXLIB_bufParams2D_t *old_gradX_addr, const int16_t old_gradY[restrict], const VXLIB_bufParams2D_t *old_gradY_addr, __float2_t old_points[restrict], __float2_t new_points[restrict], uint8_t tracking_status[restrict], uint32_t num_points, uint32_t max_iters, VXLIB_F32 epsilon, VXLIB_F32 scale, uint8_t window_size, uint8_t level, uint8_t termination, uint8_t scratch[restrict], uint32_t scratch_size)
VXLIB_STATUS VXLIB_trackFeaturesLK_i8u_checkParams(const uint8_t old_image[restrict], const VXLIB_bufParams2D_t *old_image_addr, const uint8_t new_image[restrict], const VXLIB_bufParams2D_t *new_image_addr, const int16_t old_gradX[restrict], const VXLIB_bufParams2D_t *old_gradX_addr, const int16_t old_gradY[restrict], const VXLIB_bufParams2D_t *old_gradY_addr, const __float2_t old_points[restrict], const __float2_t new_points[restrict], const uint8_t tracking_status[restrict], uint32_t num_points, uint32_t max_iters, VXLIB_F32 epsilon, VXLIB_F32 scale, uint8_t window_size, uint8_t level, uint8_t termination, const uint8_t scratch[restrict], uint32_t scratch_size)

Copyright 2024, Texas Instruments Incorporated