io
load_adjusters(path, mirror)
Get nominal adjuster locations from file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
Path to the data file. |
required |
mirror
|
str
|
The mirror that these points belong to. Should be either: 'primary' or 'secondary'. |
'primary'
|
Returns:
| Name | Type | Description |
|---|---|---|
adjusters |
dict[tuple[int, int], NDArray[float64]]
|
Nominal adjuster locations.
This is indexed by a (row, col) tuple.
Each entry is |
Source code in lat_alignment/io.py
357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 | |
load_corners(path)
Get panel corners from file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
Path to the data file. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
corners |
dict[tuple[int, int], ndarray[float64]]
|
The corners. This is indexed by a (row, col) tuple.
Each entry is |
Source code in lat_alignment/io.py
330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 | |
load_data(path, source='photo', **kwargs)
Load a dataset from path.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
The path to the data to load. |
required |
source
|
str
|
The data source. Current valid options are:
|
'photo'
|
**kwargs
|
Arguments to pass the relevent loader function.
See |
{}
|
Source code in lat_alignment/io.py
306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 | |
load_photo(path, err_thresh=2, doubles_dist=10, plot=True)
Load photogrammetry data. Assuming first column is target names and next three are (x, y , z).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
The path to the photogrammetry data. |
required |
err_thresh
|
float
|
How many times the median photogrammetry error a target need to have to be cut. |
2
|
plot
|
bool
|
If True display a scatter plot of targets. |
True
|
Returns:
| Name | Type | Description |
|---|---|---|
data |
Dataset
|
The photogrammetry data. |
Source code in lat_alignment/io.py
223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 | |
load_tracker(path, group_dist=0.02, group_thresh=0.02, err=0.005, calc_sys_err=False, cam_transform_path=None, dist_err=8e-07, ang_err=5e-06)
Load laser tracker data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
The path to the laser tracker data. The type of data will be infered from the extension. |
required |
group_dist
|
float
|
Distance between points in xy needed to group them for cuts.
Only used for |
0.02
|
group_thresh
|
float
|
Difference in z between point and the median z for a group to cut at.
Only used for |
0.02
|
err
|
float
|
The base error to assume for the tracker data.
Only used for |
.005
|
calc_sys_err
|
bool
|
It |
False
|
cam_transform_path
|
Optional[str]
|
Alignment matrix exported from CAM2.
Used when calculating systematic error.
If not provided we assume the data is the the FARO's internal coordinates.
Only used for |
None
|
dist_err
|
float
|
The systematic error as a function of distance in mm/mm.
Only used for |
8e-7
|
ang_err
|
float
|
The systematic error as a function of angle in mm/mm.
Only used for |
8e-7
|
Returns:
| Name | Type | Description |
|---|---|---|
data |
Dataset
|
The tracker data.
For txt or csv files this will be the base |
Source code in lat_alignment/io.py
153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 | |