TI Autonomous Driving Algorithms (TIADALG) Library User Guide
sfm_ti_config.h
Go to the documentation of this file.
1 /*
2 * module name : Structure From Motion
3 *
4 * module descripton : Generates sparse 3D points from optical flow information in camera captured images
5 *
6 */
7 /*
8 
9 Copyright (c) 2009-2017 Texas Instruments Incorporated
10 
11 All rights reserved not granted herein.
12 
13 Limited License.
14 
15 Texas Instruments Incorporated grants a world-wide, royalty-free, non-exclusive license under copyrights and patents it now or hereafter owns or controls to make, have made, use, import, offer to sell and sell ("Utilize") this software subject to the terms herein. With respect to the foregoing patent license, such license is granted solely to the extent that any such patent is necessary to Utilize the software alone. The patent license shall not apply to any combinations which include this software, other than combinations with devices manufactured by or for TI (�TI Devices�). No hardware patent is licensed hereunder.
16 
17 Redistributions must preserve existing copyright notices and reproduce this license (including the above copyright notice and the disclaimer and (if applicable) source code license limitations below) in the documentation and/or other materials provided with the distribution
18 
19 Redistribution and use in binary form, without modification, are permitted provided that the following conditions are met:
20 
21 * No reverse engineering, decompilation, or disassembly of this software is permitted with respect to any software provided in binary form.
22 
23 * any redistribution and use are licensed by TI for use only with TI Devices.
24 
25 * Nothing shall obligate TI to provide you with source code for the software licensed and provided to you in object code.
26 
27 If software source code is provided to you, modification and redistribution of the source code are permitted provided that the following conditions are met:
28 
29 * any redistribution and use of the source code, including any resulting derivative works, are licensed by TI for use only with TI Devices.
30 
31 * any redistribution and use of any object code compiled from the source code and any resulting derivative works, are licensed by TI for use only with TI Devices.
32 
33 Neither the name of Texas Instruments Incorporated nor the names of its suppliers may be used to endorse or promote products derived from this software without specific prior written permission.
34 
35 DISCLAIMER.
36 
37 THIS SOFTWARE IS PROVIDED BY TI AND TI�S LICENSORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL TI AND TI�S LICENSORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38 
39 */
40 #ifndef SFM_CONFIG_H_
41 #define SFM_CONFIG_H_
42 
43 #include <stdint.h>
44 
45 #define FILE_NAME_SIZE (256)
46 #define MAX_TESTCASES (20)
47 
48 extern double HSV_COLOR_MAP[][3];
49 
50 #ifndef UCHAR_MAX
51 #define UCHAR_MAX 0xff
52 #endif
53 
54 typedef struct
55 {
56  uint8_t inDofFileName[FILE_NAME_SIZE];
57  uint8_t inImgFileName[FILE_NAME_SIZE];
58  uint8_t outFeatFileName[FILE_NAME_SIZE];
59  uint8_t outImgFileName[FILE_NAME_SIZE];
60  uint8_t inCamPrmFileName[FILE_NAME_SIZE];
61  int32_t imageWidth;
62  int32_t imageHeight;
63  int32_t keyPointStep;
64  int32_t flowConfThr;
65  int32_t flowInvalidPadX;
66  int32_t flowInvalidPadY;
67  uint16_t startFrame;
68  uint16_t maxFrames;
69  uint16_t maxNumTracks;
70  uint16_t profileEn;
71  int32_t maxRansacItr;
72  int32_t maxTriangItr;
73  uint8_t curPrev3DPtFlag;
74  uint16_t compareEn;
75  uint8_t compareRsultPath[FILE_NAME_SIZE];
76  uint8_t refFeatFileName[FILE_NAME_SIZE];
77  uint16_t sfmEn;
79  uint32_t fMatrixPrunEn;
80  uint32_t fMatrixInTh;
82  int16_t enAlgPtCldVis;
83 } ssfm_Config;
84 
85 extern uint32_t sfm_numTestCases;
88 
89 #endif /*TI_SFM_CONFIG_H_*/
90 
int32_t flowInvalidPadY
Definition: sfm_ti_config.h:66
int32_t flowConfThr
Definition: sfm_ti_config.h:64
uint16_t maxFrames
Definition: sfm_ti_config.h:68
double HSV_COLOR_MAP[][3]
float pointPruneAngle
Definition: sfm_ti_config.h:81
int32_t maxTriangItr
Definition: sfm_ti_config.h:72
ssfm_Config gConfig_sfm[MAX_TESTCASES]
#define MAX_TESTCASES
Definition: sfm_ti_config.h:46
uint16_t startFrame
Definition: sfm_ti_config.h:67
int32_t flowInvalidPadX
Definition: sfm_ti_config.h:65
uint16_t sfmEn
Definition: sfm_ti_config.h:77
int32_t imageHeight
Definition: sfm_ti_config.h:62
uint16_t compareEn
Definition: sfm_ti_config.h:74
Definition: sfm_ti_config.h:54
Token Mapping structure for parsing codec specific configuration file.
Definition: tiadalg_configparser.h:106
uint16_t maxNumTracks
Definition: sfm_ti_config.h:69
uint32_t fMatrixCalcMethod
Definition: sfm_ti_config.h:78
uint32_t fMatrixPrunEn
Definition: sfm_ti_config.h:79
uint8_t curPrev3DPtFlag
Definition: sfm_ti_config.h:73
int16_t enAlgPtCldVis
Definition: sfm_ti_config.h:82
uint32_t sfm_numTestCases
int32_t maxRansacItr
Definition: sfm_ti_config.h:71
uint32_t fMatrixInTh
Definition: sfm_ti_config.h:80
#define FILE_NAME_SIZE
Definition: sfm_ti_config.h:45
#define TIADALG_MAX_ITEMS_TO_PARSE
Definition: tiadalg_configparser.h:67
int32_t keyPointStep
Definition: sfm_ti_config.h:63
uint16_t profileEn
Definition: sfm_ti_config.h:70
int32_t imageWidth
Definition: sfm_ti_config.h:61
sTokenMapping gsTokenMap_sfm[TIADALG_MAX_ITEMS_TO_PARSE]

© Copyright 2018 Texas Instruments Incorporated. All rights reserved.
Document generated by doxygen 1.8.6