Skip to content

Commit

Permalink
Fix coregistration button positions
Browse files Browse the repository at this point in the history
  • Loading branch information
Hafsa-shoaib989 committed Aug 3, 2024
1 parent 1d49c5d commit 321276b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
40 changes: 20 additions & 20 deletions invesalius/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -854,22 +854,22 @@
TR3 = wx.NewIdRef()
SET = wx.NewIdRef()

FIDUCIAL_LABELS = ["Left Ear: ", "Right Ear: ", "Nose: "]
FIDUCIAL_LABELS = ["Right Ear: ", "Left Ear: ", "Nose: "]
FIDUCIAL_REGISTRATION_ORDER = [0, 2, 1]
IMAGE_FIDUCIALS = [
{
"button_id": IR1,
"label": "Left Ear",
"fiducial_name": "LE",
"label": "Right Ear",
"fiducial_name": "RE",
"fiducial_index": 0,
"tip": _("Select left ear in image"),
"tip": _("Select right ear in image"),
},
{
"button_id": IR2,
"label": "Right Ear",
"fiducial_name": "RE",
"label": "Left Ear",
"fiducial_name": "LE",
"fiducial_index": 1,
"tip": _("Select right ear in image"),
"tip": _("Select left ear in image"),
},
{
"button_id": IR3,
Expand All @@ -883,17 +883,17 @@
TRACKER_FIDUCIALS = [
{
"button_id": TR1,
"label": "Left Ear",
"fiducial_name": "LE",
"label": "Right Ear",
"fiducial_name": "RE",
"fiducial_index": 0,
"tip": _("Select left ear with spatial tracker"),
"tip": _("Select right ear with spatial tracker"),
},
{
"button_id": TR2,
"label": "Right Ear",
"fiducial_name": "RE",
"label": "Left Ear",
"fiducial_name": "LE",
"fiducial_index": 1,
"tip": _("Select right ear with spatial tracker"),
"tip": _("Select left ear with spatial tracker"),
},
{
"button_id": TR3,
Expand All @@ -904,7 +904,7 @@
},
]

BTNS_IMG_MARKERS = {IR1: {0: "LEI"}, IR2: {1: "REI"}, IR3: {2: "NAI"}}
BTNS_IMG_MARKERS = {IR1: {0: "REI"}, IR2: {1: "LEI"}, IR3: {2: "NAI"}}

OBJL = wx.NewIdRef()
OBJR = wx.NewIdRef()
Expand All @@ -917,16 +917,16 @@
OBJECT_FIDUCIALS = [
{
"fiducial_index": 0,
"button_id": OBJL,
"label": _("Left"),
"tip": _("Select left object fiducial"),
},
{
"fiducial_index": 1,
"button_id": OBJR,
"label": _("Right"),
"tip": _("Select right object fiducial"),
},
{
"fiducial_index": 1,
"button_id": OBJL,
"label": _("Left"),
"tip": _("Select left object fiducial"),
},
{
"fiducial_index": OBJECT_FIDUCIAL_ANTERIOR,
"button_id": OBJA,
Expand Down
2 changes: 1 addition & 1 deletion invesalius/data/markers/marker.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def from_dict(self, d):
if "marker_type" in d:
marker_type = d["marker_type"]
else:
if d["label"] in ["LEI", "REI", "NAI"]:
if d["label"] in ["REI", "LEI", "NAI"]:
marker_type = MarkerType.FIDUCIAL.value

elif orientation == [None, None, None]:
Expand Down

0 comments on commit 321276b

Please sign in to comment.