Skip to content

Commit a76765d

Browse files
authored
Merge pull request #47 from philshams/pr/45
Pr/45
2 parents 0badae4 + 66720c0 commit a76765d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

SHARP-Track/Display_Probe_Track.m

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,13 @@
156156
out_of_brain = false;
157157
while ~(ann==1 && out_of_brain) % && distance_stepped > .5*active_probe_length)
158158
m = m-p; % step 10um, backwards up the track
159-
ann = av_plot(round(m(1)),round(m(2)),round(m(3))); %until hitting the top
159+
if strcmp(plane,'coronal')
160+
ann = av_plot(round(m(1)),round(m(2)),round(m(3))); %until hitting the top
161+
elseif strcmp(plane,'sagittal')
162+
ann = av_plot(round(m(3)),round(m(2)),round(m(1))); %until hitting the top
163+
elseif strcmp(plane,'transverse')
164+
ann = av_plot(round(m(2)),round(m(3)),round(m(1))); %until hitting the top
165+
end
160166
if strcmp(st.safe_name(ann), 'root')
161167
% make sure this isn't just a 'root' area within the brain
162168
m_further_up = m - p*20; % is there more brain 200 microns up along the track?

0 commit comments

Comments
 (0)