sdk
common
adi
tofi
tofi_camera_intrinsics.h
Go to the documentation of this file.
1
4
#ifndef TOFI_CAMERA_INTRINSICS_H
5
#define TOFI_CAMERA_INTRINSICS_H
6
7
#ifdef __cplusplus
8
extern
"C"
{
// only need to export C interface if
9
// used by C++ source code
10
#endif
11
#define MAX_PATH_SIZE 512
12
#define MAX_CHAR_SIZE 24
13
#define MAX_N_FREQS 3
14
#define MAX_N_MODES 10
15
// Structure for the camera intrinsic data
16
typedef
struct
{
17
float
fx
;
18
float
fy
;
19
float
cx
;
20
float
cy
;
21
float
codx
;
22
float
cody
;
23
float
k1
;
24
float
k2
;
25
float
k3
;
26
float
k4
;
27
float
k5
;
28
float
k6
;
29
float
p2
;
30
float
p1
;
31
}
CameraIntrinsics
;
32
33
// Structure for the CCB data
34
typedef
struct
{
35
int
n_rows
;
36
int
n_cols
;
37
uint8_t
n_freqs
;
38
uint8_t
row_bin_factor
;
39
uint8_t
col_bin_factor
;
40
uint16_t
n_offset_rows
;
41
uint16_t
n_offset_cols
;
42
uint16_t
n_sensor_rows
;
43
uint16_t
n_sensor_cols
;
44
uint8_t FreqIndex[
MAX_N_FREQS
];
45
uint16_t Freq[
MAX_N_FREQS
];
46
CameraIntrinsics
camera_intrinsics
;
47
}
TofiXYZDealiasData
;
48
typedef
struct
{
49
int
depthComputeIspEnable
;
50
int
partialDepthEnable
;
51
int
interleavingEnable
;
52
int
bitsInPhaseOrDepth
;
53
int
bitsInAB
;
54
int
bitsInConf
;
55
int
phaseInvalid
;
56
int
withABFrame
;
57
int
littleEndian
;
58
char
inputFormat[
MAX_CHAR_SIZE
];
59
}
DepthComputeISPParams
;
60
typedef
struct
{
61
char
inputFormat[
MAX_CHAR_SIZE
];
62
int
deltaCompEnable
;
63
int
headerSize
;
64
int
tempCompEnabled
;
65
}
InputRawDataParams
;
66
typedef
struct
{
67
int
jblf_apply_flag
;
68
int
jblf_window_size
;
69
float
jblf_gaussian_sigma
;
70
float
jblf_exponential_term
;
71
float
jblf_max_edge
;
72
float
jblf_ab_threshold
;
73
int
ab_filter_enable
;
74
}
JBLFConfigParams
;
75
typedef
struct
{
76
float
ab_thresh_min
;
77
float
ab_sum_thresh
;
78
}
ABThresholdsParams
;
79
typedef
struct
{
80
float
conf_thresh
;
81
float
radial_thresh_min
;
82
float
radial_thresh_max
;
83
}
DepthRangeParams
;
84
typedef
struct
{
85
int
xyz_enable
;
86
int
depth16_enable
;
87
int
ab_only_enable
;
88
char
cl_processor_path[
MAX_PATH_SIZE
];
89
}
MiscellaneousParams
;
90
typedef
enum
{
91
DepthComputeISP
,
92
InputRawData
,
93
JBLFConfig
,
94
ABThresholds
,
95
DepthRangeThresholds
,
96
Miscellaneous
97
}
INIParamsGroup
;
98
#ifdef __cplusplus
99
}
100
#endif
101
102
#endif // TOFI_CAMERA_INTRINSICS_H
CameraIntrinsics::cx
float cx
Definition:
tofi_camera_intrinsics.h:19
JBLFConfigParams::jblf_ab_threshold
float jblf_ab_threshold
Definition:
tofi_camera_intrinsics.h:72
JBLFConfigParams
Definition:
tofi_camera_intrinsics.h:66
JBLFConfigParams::jblf_gaussian_sigma
float jblf_gaussian_sigma
Definition:
tofi_camera_intrinsics.h:69
DepthComputeISPParams::partialDepthEnable
int partialDepthEnable
Definition:
tofi_camera_intrinsics.h:50
TofiXYZDealiasData::col_bin_factor
uint8_t col_bin_factor
Definition:
tofi_camera_intrinsics.h:39
DepthComputeISPParams::bitsInAB
int bitsInAB
Definition:
tofi_camera_intrinsics.h:53
ABThresholdsParams::ab_sum_thresh
float ab_sum_thresh
Definition:
tofi_camera_intrinsics.h:77
CameraIntrinsics::p1
float p1
Definition:
tofi_camera_intrinsics.h:30
JBLFConfigParams::jblf_exponential_term
float jblf_exponential_term
Definition:
tofi_camera_intrinsics.h:70
TofiXYZDealiasData::n_offset_cols
uint16_t n_offset_cols
Definition:
tofi_camera_intrinsics.h:41
CameraIntrinsics::k5
float k5
Definition:
tofi_camera_intrinsics.h:27
DepthComputeISPParams::littleEndian
int littleEndian
Definition:
tofi_camera_intrinsics.h:57
MAX_PATH_SIZE
#define MAX_PATH_SIZE
Definition:
tofi_camera_intrinsics.h:11
DepthRangeParams::radial_thresh_min
float radial_thresh_min
Definition:
tofi_camera_intrinsics.h:81
CameraIntrinsics::k1
float k1
Definition:
tofi_camera_intrinsics.h:23
JBLFConfigParams::jblf_max_edge
float jblf_max_edge
Definition:
tofi_camera_intrinsics.h:71
DepthComputeISPParams::depthComputeIspEnable
int depthComputeIspEnable
Definition:
tofi_camera_intrinsics.h:49
TofiXYZDealiasData::camera_intrinsics
CameraIntrinsics camera_intrinsics
Definition:
tofi_camera_intrinsics.h:46
MiscellaneousParams::depth16_enable
int depth16_enable
Definition:
tofi_camera_intrinsics.h:86
TofiXYZDealiasData::n_cols
int n_cols
Definition:
tofi_camera_intrinsics.h:36
CameraIntrinsics::k4
float k4
Definition:
tofi_camera_intrinsics.h:26
MiscellaneousParams::ab_only_enable
int ab_only_enable
Definition:
tofi_camera_intrinsics.h:87
CameraIntrinsics::k6
float k6
Definition:
tofi_camera_intrinsics.h:28
TofiXYZDealiasData::n_rows
int n_rows
Definition:
tofi_camera_intrinsics.h:35
DepthRangeParams::conf_thresh
float conf_thresh
Definition:
tofi_camera_intrinsics.h:80
DepthComputeISPParams
Definition:
tofi_camera_intrinsics.h:48
DepthComputeISPParams::withABFrame
int withABFrame
Definition:
tofi_camera_intrinsics.h:56
CameraIntrinsics::codx
float codx
Definition:
tofi_camera_intrinsics.h:21
DepthRangeThresholds
@ DepthRangeThresholds
Definition:
tofi_camera_intrinsics.h:95
DepthComputeISPParams::bitsInConf
int bitsInConf
Definition:
tofi_camera_intrinsics.h:54
INIParamsGroup
INIParamsGroup
Definition:
tofi_camera_intrinsics.h:90
DepthRangeParams
Definition:
tofi_camera_intrinsics.h:79
InputRawDataParams::tempCompEnabled
int tempCompEnabled
Definition:
tofi_camera_intrinsics.h:64
MiscellaneousParams::xyz_enable
int xyz_enable
Definition:
tofi_camera_intrinsics.h:85
TofiXYZDealiasData::row_bin_factor
uint8_t row_bin_factor
Definition:
tofi_camera_intrinsics.h:38
CameraIntrinsics::k3
float k3
Definition:
tofi_camera_intrinsics.h:25
DepthComputeISPParams::bitsInPhaseOrDepth
int bitsInPhaseOrDepth
Definition:
tofi_camera_intrinsics.h:52
DepthComputeISPParams::interleavingEnable
int interleavingEnable
Definition:
tofi_camera_intrinsics.h:51
InputRawDataParams
Definition:
tofi_camera_intrinsics.h:60
TofiXYZDealiasData::n_sensor_cols
uint16_t n_sensor_cols
Definition:
tofi_camera_intrinsics.h:43
InputRawDataParams::headerSize
int headerSize
Definition:
tofi_camera_intrinsics.h:63
InputRawDataParams::deltaCompEnable
int deltaCompEnable
Definition:
tofi_camera_intrinsics.h:62
JBLFConfigParams::jblf_apply_flag
int jblf_apply_flag
Definition:
tofi_camera_intrinsics.h:67
ABThresholdsParams
Definition:
tofi_camera_intrinsics.h:75
TofiXYZDealiasData::n_offset_rows
uint16_t n_offset_rows
Definition:
tofi_camera_intrinsics.h:40
CameraIntrinsics
Definition:
tofi_camera_intrinsics.h:16
MiscellaneousParams
Definition:
tofi_camera_intrinsics.h:84
MAX_CHAR_SIZE
#define MAX_CHAR_SIZE
Definition:
tofi_camera_intrinsics.h:12
CameraIntrinsics::cody
float cody
Definition:
tofi_camera_intrinsics.h:22
TofiXYZDealiasData::n_sensor_rows
uint16_t n_sensor_rows
Definition:
tofi_camera_intrinsics.h:42
CameraIntrinsics::fy
float fy
Definition:
tofi_camera_intrinsics.h:18
MAX_N_FREQS
#define MAX_N_FREQS
Definition:
tofi_camera_intrinsics.h:13
Miscellaneous
@ Miscellaneous
Definition:
tofi_camera_intrinsics.h:96
TofiXYZDealiasData
Definition:
tofi_camera_intrinsics.h:34
DepthComputeISPParams::phaseInvalid
int phaseInvalid
Definition:
tofi_camera_intrinsics.h:55
CameraIntrinsics::fx
float fx
Definition:
tofi_camera_intrinsics.h:17
CameraIntrinsics::p2
float p2
Definition:
tofi_camera_intrinsics.h:29
ABThresholdsParams::ab_thresh_min
float ab_thresh_min
Definition:
tofi_camera_intrinsics.h:76
ABThresholds
@ ABThresholds
Definition:
tofi_camera_intrinsics.h:94
JBLFConfig
@ JBLFConfig
Definition:
tofi_camera_intrinsics.h:93
DepthRangeParams::radial_thresh_max
float radial_thresh_max
Definition:
tofi_camera_intrinsics.h:82
InputRawData
@ InputRawData
Definition:
tofi_camera_intrinsics.h:92
DepthComputeISP
@ DepthComputeISP
Definition:
tofi_camera_intrinsics.h:91
CameraIntrinsics::k2
float k2
Definition:
tofi_camera_intrinsics.h:24
CameraIntrinsics::cy
float cy
Definition:
tofi_camera_intrinsics.h:20
JBLFConfigParams::jblf_window_size
int jblf_window_size
Definition:
tofi_camera_intrinsics.h:68
TofiXYZDealiasData::n_freqs
uint8_t n_freqs
Definition:
tofi_camera_intrinsics.h:37
JBLFConfigParams::ab_filter_enable
int ab_filter_enable
Definition:
tofi_camera_intrinsics.h:73
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:00