From b4165a58147752500763c772e65565cd3d2f00a6 Mon Sep 17 00:00:00 2001 From: RobertoDF Date: Thu, 15 Oct 2020 20:25:15 +0200 Subject: [PATCH 1/2] Issue 44# --- SHARP-Track/Display_Probe_Track.m | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/SHARP-Track/Display_Probe_Track.m b/SHARP-Track/Display_Probe_Track.m index 7fc4189..234d26a 100644 --- a/SHARP-Track/Display_Probe_Track.m +++ b/SHARP-Track/Display_Probe_Track.m @@ -156,7 +156,20 @@ out_of_brain = false; while ~(ann==1 && out_of_brain) % && distance_stepped > .5*active_probe_length) m = m-p; % step 10um, backwards up the track - ann = av_plot(round(m(1)),round(m(2)),round(m(3))); %until hitting the top + + if strcmp(plane,'coronal') + ann = av_plot(round(m(1)),round(m(2)),round(m(3))); %until hitting the top + + elseif strcmp(plane,'sagittal') + ann = av_plot(round(m(3)),round(m(2)),round(m(1))); %until hitting the top + + elseif strcmp(plane,'transverse') + ann = av_plot(round(m(2)),round(m(3)),round(m(1))); %until hitting the top + + end + + + if strcmp(st.safe_name(ann), 'root') % make sure this isn't just a 'root' area within the brain m_further_up = m - p*20; % is there more brain 200 microns up along the track? From 66720c0d1f33a182fc2a45d31dafebf2e0569adc Mon Sep 17 00:00:00 2001 From: pshamash Date: Fri, 18 Dec 2020 18:33:29 +0000 Subject: [PATCH 2/2] Update Display_Probe_Track.m --- SHARP-Track/Display_Probe_Track.m | 7 ------- 1 file changed, 7 deletions(-) diff --git a/SHARP-Track/Display_Probe_Track.m b/SHARP-Track/Display_Probe_Track.m index 234d26a..0cf97a8 100644 --- a/SHARP-Track/Display_Probe_Track.m +++ b/SHARP-Track/Display_Probe_Track.m @@ -156,20 +156,13 @@ out_of_brain = false; while ~(ann==1 && out_of_brain) % && distance_stepped > .5*active_probe_length) m = m-p; % step 10um, backwards up the track - if strcmp(plane,'coronal') ann = av_plot(round(m(1)),round(m(2)),round(m(3))); %until hitting the top - elseif strcmp(plane,'sagittal') ann = av_plot(round(m(3)),round(m(2)),round(m(1))); %until hitting the top - elseif strcmp(plane,'transverse') ann = av_plot(round(m(2)),round(m(3)),round(m(1))); %until hitting the top - end - - - if strcmp(st.safe_name(ann), 'root') % make sure this isn't just a 'root' area within the brain m_further_up = m - p*20; % is there more brain 200 microns up along the track?