device_parameters.h
Go to the documentation of this file.
1 /*
2  * BSD 3-Clause License
3  *
4  * Copyright (c) 2019, Analog Devices, Inc.
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions are met:
9  *
10  * 1. Redistributions of source code must retain the above copyright notice, this
11  * list of conditions and the following disclaimer.
12  *
13  * 2. Redistributions in binary form must reproduce the above copyright notice,
14  * this list of conditions and the following disclaimer in the documentation
15  * and/or other materials provided with the distribution.
16  *
17  * 3. Neither the name of the copyright holder nor the names of its
18  * contributors may be used to endorse or promote products derived from
19  * this software without specific prior written permission.
20  *
21  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
25  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
28  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
29  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  */
32 
33 #ifndef DEVICE_PARAMETERS_H
34 #define DEVICE_PARAMETERS_H
35 
36 #include "ini_file_definitions.h"
39 #include <vector>
40 
41 #define CHIP_ID_SINGLE 0x5931
42 
44  public:
46  std::vector<iniFileStruct> &iniFileStructList,
47  std::vector<aditof::DepthSensorModeDetails> &modeDetailsList,
48  std::string imagerType, const uint16_t &chipID);
49 };
50 
51 using namespace std;
52 
53 static map<string, string> adsd3100_partialDepth = {
54  {"abThreshMin", "3.0"},
55  {"confThresh", "25.0"},
56  {"radialThreshMin", "30.0"},
57  {"radialThreshMax", "4200.0"},
58  {"jblfApplyFlag", "1"},
59  {"jblfWindowSize", "7"},
60  {"jblfGaussianSigma", "10.0"},
61  {"jblfExponentialTerm", "5.0"},
62  {"jblfMaxEdge", "12.0"},
63  {"jblfABThreshold", "10.0"},
64  {"headerSize", "128"},
65  {"inputFormat", "mipiRaw12_8"},
66  {"depthComputeIspEnable", "1"},
67  {"partialDepthEnable", "1"},
68  {"interleavingEnable", "0"},
69  {"bitsInPhaseOrDepth", "12"},
70  {"bitsInConf", "0"},
71  {"bitsInAB", "16"},
72  {"phaseInvalid", "0"},
73  {"xyzEnable", "1"},
74  {"fps", "10"},
75  {"multiCoreEnable", "1"},
76  {"numCores", "4"}};
77 
78 static map<string, string> adsd3100_dual_fullDepth = {
79  {"abThreshMin", "3.0"},
80  {"confThresh", "25.0"},
81  {"radialThreshMin", "100.0"},
82  {"radialThreshMax", "10000.0"},
83  {"jblfApplyFlag", "1"},
84  {"jblfWindowSize", "7"},
85  {"jblfGaussianSigma", "10.0"},
86  {"jblfExponentialTerm", "5.0"},
87  {"jblfMaxEdge", "12.0"},
88  {"jblfABThreshold", "10.0"},
89  {"headerSize", "128"},
90  {"inputFormat", "mipiRaw12_8"},
91  {"depthComputeIspEnable", "1"},
92  {"partialDepthEnable", "1"},
93  {"interleavingEnable", "0"},
94  {"bitsInPhaseOrDepth", "16"},
95  {"bitsInConf", "0"},
96  {"bitsInAB", "16"},
97  {"phaseInvalid", "0"},
98  {"xyzEnable", "1"},
99  {"fps", "20"}};
100 
101 static map<string, string> adsd3100_fullDepth = {{"abThreshMin", "3.0"},
102  {"confThresh", "25.0"},
103  {"radialThreshMin", "100.0"},
104  {"radialThreshMax", "10000.0"},
105  {"jblfApplyFlag", "1"},
106  {"jblfWindowSize", "7"},
107  {"jblfGaussianSigma", "10.0"},
108  {"jblfExponentialTerm", "5.0"},
109  {"jblfMaxEdge", "12.0"},
110  {"jblfABThreshold", "10.0"},
111  {"headerSize", "128"},
112  {"inputFormat", "raw8"},
113  {"depthComputeIspEnable", "1"},
114  {"partialDepthEnable", "0"},
115  {"interleavingEnable", "1"},
116  {"bitsInPhaseOrDepth", "16"},
117  {"bitsInConf", "8"},
118  {"bitsInAB", "16"},
119  {"phaseInvalid", "0"},
120  {"xyzEnable", "1"},
121  {"fps", "40"},
122  {"multiCoreEnable", "1"},
123  {"numCores", "4"}};
124 
125 static map<string, string> adsd_PCM = {{"abThreshMin", "3.0"},
126  {"confThresh", "25.0"},
127  {"radialThreshMin", "100.0"},
128  {"radialThreshMax", "10000.0"},
129  {"jblfApplyFlag", "1"},
130  {"jblfWindowSize", "7"},
131  {"jblfGaussianSigma", "10.0"},
132  {"jblfExponentialTerm", "5.0"},
133  {"jblfMaxEdge", "12.0"},
134  {"jblfABThreshold", "10.0"},
135  {"headerSize", "0"},
136  {"inputFormat", "mipiRaw12_8"},
137  {"depthComputeIspEnable", "0"},
138  {"partialDepthEnable", "0"},
139  {"interleavingEnable", "0"},
140  {"bitsInPhaseOrDepth", "0"},
141  {"bitsInConf", "0"},
142  {"bitsInAB", "0"},
143  {"phaseInvalid", "0"},
144  {"xyzEnable", "0"},
145  {"fps", "15"},
146  {"multiCoreEnable", "1"},
147  {"numCores", "4"}};
148 
149 static map<string, string> adsd3030_fullDepth = {{"abThreshMin", "3.0"},
150  {"confThresh", "25.0"},
151  {"radialThreshMin", "100.0"},
152  {"radialThreshMax", "10000.0"},
153  {"jblfApplyFlag", "1"},
154  {"jblfWindowSize", "7"},
155  {"jblfGaussianSigma", "10.0"},
156  {"jblfExponentialTerm", "5.0"},
157  {"jblfMaxEdge", "12.0"},
158  {"jblfABThreshold", "10.0"},
159  {"headerSize", "128"},
160  {"inputFormat", "raw8"},
161  {"depthComputeIspEnable", "1"},
162  {"partialDepthEnable", "0"},
163  {"interleavingEnable", "1"},
164  {"bitsInPhaseOrDepth", "16"},
165  {"bitsInConf", "8"},
166  {"bitsInAB", "16"},
167  {"phaseInvalid", "0"},
168  {"xyzEnable", "1"},
169  {"fps", "40"},
170  {"multiCoreEnable", "1"},
171  {"numCores", "4"}};
172 
173 static map<string, string> adtf3080_fullDepth = {{"abThreshMin", "3.0"},
174  {"confThresh", "25.0"},
175  {"radialThreshMin", "100.0"},
176  {"radialThreshMax", "10000.0"},
177  {"jblfApplyFlag", "1"},
178  {"jblfWindowSize", "7"},
179  {"jblfGaussianSigma", "10.0"},
180  {"jblfExponentialTerm", "5.0"},
181  {"jblfMaxEdge", "12.0"},
182  {"jblfABThreshold", "10.0"},
183  {"headerSize", "128"},
184  {"inputFormat", "raw8"},
185  {"depthComputeIspEnable", "1"},
186  {"partialDepthEnable", "0"},
187  {"interleavingEnable", "1"},
188  {"bitsInPhaseOrDepth", "16"},
189  {"bitsInConf", "8"},
190  {"bitsInAB", "16"},
191  {"phaseInvalid", "0"},
192  {"xyzEnable", "1"},
193  {"fps", "40"},
194  {"multiCoreEnable", "1"},
195  {"numCores", "4"}};
196 
197 #endif
ini_file_definitions.h
string
GLsizei const GLchar *const * string
Definition: glcorearb.h:3083
adsd3100_fullDepth
static map< string, string > adsd3100_fullDepth
Definition: device_parameters.h:101
DeviceParameters
Definition: device_parameters.h:43
adsd_PCM
static map< string, string > adsd_PCM
Definition: device_parameters.h:125
adsd3030_fullDepth
static map< string, string > adsd3030_fullDepth
Definition: device_parameters.h:149
adsd3100_dual_fullDepth
static map< string, string > adsd3100_dual_fullDepth
Definition: device_parameters.h:78
aditof::Status
Status
Status of any operation that the TOF sdk performs.
Definition: status_definitions.h:48
adsd3100_partialDepth
static map< string, string > adsd3100_partialDepth
Definition: device_parameters.h:53
std
sensor_definitions.h
DeviceParameters::createIniParams
static aditof::Status createIniParams(std::vector< iniFileStruct > &iniFileStructList, std::vector< aditof::DepthSensorModeDetails > &modeDetailsList, std::string imagerType, const uint16_t &chipID)
Definition: device_parameters.cpp:10
status_definitions.h
adtf3080_fullDepth
static map< string, string > adtf3080_fullDepth
Definition: device_parameters.h:173
aditof::imagerType
const std::map< ImagerType, std::string > imagerType
Types of imagers.
Definition: camera_definitions.h:218


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:50