Commit f66b313a9f54b73e03fbd9b6f413884c69afee6b
Committed by
GitHub
1 parent
045d73a8
Exists in
master
MOD: Move FRE threshold to constants (#311)
Showing
2 changed files
with
4 additions
and
2 deletions
Show diff stats
invesalius/constants.py
@@ -659,6 +659,8 @@ BOOLEAN_XOR = 4 | @@ -659,6 +659,8 @@ BOOLEAN_XOR = 4 | ||
659 | 659 | ||
660 | MARKER_COLOUR = (1.0, 1.0, 0.) | 660 | MARKER_COLOUR = (1.0, 1.0, 0.) |
661 | MARKER_SIZE = 2 | 661 | MARKER_SIZE = 2 |
662 | +FIDUCIAL_REGISTRATION_ERROR_THRESHOLD = 3.0 | ||
663 | + | ||
662 | SELECT = 0 | 664 | SELECT = 0 |
663 | MTC = 1 | 665 | MTC = 1 |
664 | FASTRAK = 2 | 666 | FASTRAK = 2 |
@@ -773,7 +775,7 @@ MTC_PROBE_NAME = "1Probe" | @@ -773,7 +775,7 @@ MTC_PROBE_NAME = "1Probe" | ||
773 | MTC_REF_NAME = "2Ref" | 775 | MTC_REF_NAME = "2Ref" |
774 | MTC_OBJ_NAME = "3Coil" | 776 | MTC_OBJ_NAME = "3Coil" |
775 | 777 | ||
776 | -#OBJECT TRACKING | 778 | +# Object tracking |
777 | ARROW_SCALE = 6 | 779 | ARROW_SCALE = 6 |
778 | ARROW_UPPER_LIMIT = 15 | 780 | ARROW_UPPER_LIMIT = 15 |
779 | #COIL_ANGLES_THRESHOLD = 3 * ARROW_SCALE | 781 | #COIL_ANGLES_THRESHOLD = 3 * ARROW_SCALE |
invesalius/gui/task_navigator.py
@@ -352,7 +352,7 @@ class Navigation(): | @@ -352,7 +352,7 @@ class Navigation(): | ||
352 | 352 | ||
353 | def GetFiducialRegistrationError(self, icp): | 353 | def GetFiducialRegistrationError(self, icp): |
354 | fre = icp.icp_fre if icp.use_icp else self.fre | 354 | fre = icp.icp_fre if icp.use_icp else self.fre |
355 | - return fre, fre <= 3 | 355 | + return fre, fre <= const.FIDUCIAL_REGISTRATION_ERROR_THRESHOLD |
356 | 356 | ||
357 | def StartNavigation(self, tracker): | 357 | def StartNavigation(self, tracker): |
358 | tracker_fiducials, tracker_fiducials_raw = tracker.GetTrackerFiducials() | 358 | tracker_fiducials, tracker_fiducials_raw = tracker.GetTrackerFiducials() |