Registration
Registration类
- 初始化
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
method
|
str
|
求解方法 |
'helmert'
|
Source code in src/gotrackit/tools/registration.py
10 11 12 13 14 15 16 17 18 19 20 21 | |
Registration类方法 - generate_convert_mat
- 依据 像素坐标组 以及 对应的真实坐标组 计算仿射变换矩阵
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pixel_loc_array
|
ndarray
|
像素坐标组, np.array([[x1, y1], [x2, y2], ...]) |
None
|
actual_loc_array
|
ndarray
|
真实坐标组, np.array([[x1, y1], [x2, y2], ...]) |
None
|
Returns:
Source code in src/gotrackit/tools/registration.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | |
Registration类方法 - coords_convert
- 将像素坐标转换为真实世界坐标
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x
|
float
|
x坐标 |
None
|
y
|
float
|
y坐标 |
None
|
Returns:
| Type | Description |
|---|---|
ndarray
|
(x, y) |
Source code in src/gotrackit/tools/registration.py
139 140 141 142 143 144 145 146 147 148 149 150 151 | |