From 3bf1fb9a71cb0dd80462dc6de1c1b50895be48ea Mon Sep 17 00:00:00 2001 From: "Kouichi C. Nakamura" Date: Tue, 19 Jul 2022 17:06:47 +0100 Subject: [PATCH 1/3] Control comment has been amended --- Browsing Functions/AtlasTransformBrowser.m | 29 +++++++++++++++++++--- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/Browsing Functions/AtlasTransformBrowser.m b/Browsing Functions/AtlasTransformBrowser.m index dacb454..76c5653 100644 --- a/Browsing Functions/AtlasTransformBrowser.m +++ b/Browsing Functions/AtlasTransformBrowser.m @@ -84,10 +84,31 @@ fprintf(1, '\n Controls: \n'); fprintf(1, '--------- \n'); fprintf(1, 'Navigation: \n'); -fprintf(1, 'up: scroll through A/P angles (for coronal sections)\n'); -fprintf(1, 'right: scroll through M/L angles (for coronal sections)\n'); -fprintf(1, 'down: scroll through slices \n'); -fprintf(1, 'scroll: move between slices \n'); +switch ud.plane + case 'coronal' + fprintf(1, 'up: scroll through D/V angles (for coronal sections)\n'); + fprintf(1, 'right: scroll through M/L angles (for coronal sections)\n'); + fprintf(1, 'down: scroll through A/P atlas slices \n'); + fprintf(1, 'left: scroll through slices \n'); + + fprintf(1, 'scroll: move between slices or angles \n'); + case 'sagittal' + fprintf(1, 'up: scroll through D/V angles (for sagittal sections)\n'); + fprintf(1, 'right: scroll through A/P angles (for sagittal sections)\n'); + fprintf(1, 'down: scroll through M/L atlas slices \n'); + fprintf(1, 'left: scroll through slices \n'); + + fprintf(1, 'scroll: move between slices or angles \n'); + + case 'transverse' + fprintf(1, 'up: scroll through M/L angles (for transverse sections)\n'); + fprintf(1, 'right: scroll through A/P angles (for transverse sections)\n'); + fprintf(1, 'down: scroll through D/V atlas slices \n'); + fprintf(1, 'left: scroll through slices \n'); + + fprintf(1, 'scroll: move between slices or angles \n'); + +end fprintf(1, '\n Registration: \n'); fprintf(1, 't: toggle mode where clicks are logged for transform \n'); From 72ee8fb9eb2a5b34225153c69c0dd62908da0575 Mon Sep 17 00:00:00 2001 From: "Kouichi C. Nakamura" Date: Tue, 19 Jul 2022 17:13:51 +0100 Subject: [PATCH 2/3] bug fix --- Browsing Functions/AtlasTransformBrowser.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Browsing Functions/AtlasTransformBrowser.m b/Browsing Functions/AtlasTransformBrowser.m index 76c5653..495dcec 100644 --- a/Browsing Functions/AtlasTransformBrowser.m +++ b/Browsing Functions/AtlasTransformBrowser.m @@ -8,7 +8,7 @@ % % print instructions -display_controls +display_controls(plane) % create figure and adjust to user's screen size % f = figure('Name','Atlas Viewer'); @@ -80,11 +80,11 @@ set(f, 'WindowButtonMotionFcn',@(f,k)fh_wbmfcn(f, allData, slice_figure, save_location)); % Set the motion detector. % display user controls in the console -function display_controls +function display_controls(plane) fprintf(1, '\n Controls: \n'); fprintf(1, '--------- \n'); fprintf(1, 'Navigation: \n'); -switch ud.plane +switch plane case 'coronal' fprintf(1, 'up: scroll through D/V angles (for coronal sections)\n'); fprintf(1, 'right: scroll through M/L angles (for coronal sections)\n'); @@ -144,7 +144,7 @@ function hotkeyFcn(f, slice_figure, keydata, allData, save_location, save_suffix switch key_letter % space -- display controls case 'space' - display_controls + display_controls(ud.plane) % o -- toggle showing brain region overlay case 'o' ud.showOverlay = ~ud.showOverlay; From b16146600f408963b4a4a842538350f15970dcf9 Mon Sep 17 00:00:00 2001 From: "Kouichi C. Nakamura" Date: Tue, 19 Jul 2022 17:24:52 +0100 Subject: [PATCH 3/3] AtlasTransformBrowser.m Browsing Functions --- Browsing Functions/AtlasTransformBrowser.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Browsing Functions/AtlasTransformBrowser.m b/Browsing Functions/AtlasTransformBrowser.m index 495dcec..5cf501c 100644 --- a/Browsing Functions/AtlasTransformBrowser.m +++ b/Browsing Functions/AtlasTransformBrowser.m @@ -89,14 +89,14 @@ function display_controls(plane) fprintf(1, 'up: scroll through D/V angles (for coronal sections)\n'); fprintf(1, 'right: scroll through M/L angles (for coronal sections)\n'); fprintf(1, 'down: scroll through A/P atlas slices \n'); - fprintf(1, 'left: scroll through slices \n'); + fprintf(1, 'left: scroll for Slice Viewer \n'); fprintf(1, 'scroll: move between slices or angles \n'); case 'sagittal' fprintf(1, 'up: scroll through D/V angles (for sagittal sections)\n'); fprintf(1, 'right: scroll through A/P angles (for sagittal sections)\n'); fprintf(1, 'down: scroll through M/L atlas slices \n'); - fprintf(1, 'left: scroll through slices \n'); + fprintf(1, 'left: scroll for Slice Viewer \n'); fprintf(1, 'scroll: move between slices or angles \n'); @@ -104,7 +104,7 @@ function display_controls(plane) fprintf(1, 'up: scroll through M/L angles (for transverse sections)\n'); fprintf(1, 'right: scroll through A/P angles (for transverse sections)\n'); fprintf(1, 'down: scroll through D/V atlas slices \n'); - fprintf(1, 'left: scroll through slices \n'); + fprintf(1, 'left: scroll for Slice Viewer \n'); fprintf(1, 'scroll: move between slices or angles \n');