bearing
Module for fitting for the bearing location. Needs to be made less hardcoded...
cylinder_fit(dataset)
Fit for the bearing's position by fitting a cylinder to the bearing surface. This acts as a correction on top of the alignment to reference points.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
dataset
|
Dataset
|
Photogrammetry dataset. Should already be aligned to the bearing referance points. |
required |
Returns:
Name | Type | Description |
---|---|---|
inside_points |
Dataset
|
Points on the inner surface of the bearing with alignment applied. Only includes targets, codes are removed. |
alignment |
tuple[NDArray[float32], NDArray[float32]]
|
The transformation that aligned the bearing. The first element is a rotation matrix and the second is the shift. |
Source code in lat_alignment/bearing.py
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 |
|
partition_points(dataset)
Split up dataset into points on the bearing reference surface and inner surface. Also pulls out the bearing zero points.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
dataset
|
Dataset
|
Photogrammetry dataset. Should already be aligned to the bearing referance points. |
required |
Returns:
Name | Type | Description |
---|---|---|
inside_points |
Dataset
|
Points on the inner surface of the bearing. Only includes targets, codes are removed. |
face_points |
Dataset
|
Points on face of the bearing that we use as a reference surface. Only includes targets, codes are removed. |
zero_point |
NDArray[float32]
|
Array of size (3,) that gives the coordinates of the target we treat as the bearing's zero point. |
zero_code |
NDArray[float32]
|
Array of size (3,) that gives the coordinates of the coded target we use to identify the bearing's zero point. |
Raises:
Type | Description |
---|---|
ValueError
|
When the zero point of the bearing is not found or there are less than four points found on the inner surface or face fo the bearing. |
Source code in lat_alignment/bearing.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
|