|
5 | 5 | from dataclasses import asdict, dataclass, field |
6 | 6 | from datetime import datetime |
7 | 7 | from pathlib import Path |
8 | | -from typing import Dict, List, Tuple, Optional |
| 8 | +from typing import Dict, List, Tuple |
9 | 9 |
|
10 | 10 | import numpy as np |
11 | 11 |
|
@@ -44,9 +44,13 @@ class TransducerTrackingResult: |
44 | 44 | photoscan_to_volume_transform: ArrayTransform |
45 | 45 | """Transform output by the transducer tracking algorithm to register the photoscan model the volume's skin segmentation""" |
46 | 46 |
|
47 | | - transducer_tracking_approved: Optional[bool] = False |
48 | | - """Approval state of transducer tracking result. `True` means the user has provided some kind of |
49 | | - confirmation that the transducer transforms in this result agrees with reality.""" |
| 47 | + transducer_to_photoscan_tracking_approved: bool = False |
| 48 | + """Approval state of transducer to photoscan tracking result. `True` means the user has provided some kind of |
| 49 | + confirmation that the transform result agrees with reality.""" |
| 50 | + |
| 51 | + photoscan_to_volume_tracking_approved: bool = False |
| 52 | + """Approval state of photoscan to volume tracking result. `True` means the user has provided some kind of |
| 53 | + confirmation that the transform result agrees with reality.""" |
50 | 54 |
|
51 | 55 | @dataclass |
52 | 56 | class Session: |
@@ -155,7 +159,8 @@ def from_dict(d:Dict): |
155 | 159 | t['photoscan_id'], |
156 | 160 | ArrayTransform(np.array(t['transducer_to_photoscan_transform']['matrix']),t['transducer_to_photoscan_transform']['units']), |
157 | 161 | ArrayTransform(np.array(t['photoscan_to_volume_transform']['matrix']), t['photoscan_to_volume_transform']['units']), |
158 | | - t['transducer_tracking_approved'] |
| 162 | + t['transducer_to_photoscan_tracking_approved'], |
| 163 | + t['photoscan_to_volume_tracking_approved'] |
159 | 164 | ) |
160 | 165 | for t in d['transducer_tracking_results'] |
161 | 166 | ] |
|
0 commit comments