Skip to content

Commit b4165a5

Browse files
committed
Issue 44#
1 parent 80fc935 commit b4165a5

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

SHARP-Track/Display_Probe_Track.m

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,20 @@
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+
160+
if strcmp(plane,'coronal')
161+
ann = av_plot(round(m(1)),round(m(2)),round(m(3))); %until hitting the top
162+
163+
elseif strcmp(plane,'sagittal')
164+
ann = av_plot(round(m(3)),round(m(2)),round(m(1))); %until hitting the top
165+
166+
elseif strcmp(plane,'transverse')
167+
ann = av_plot(round(m(2)),round(m(3)),round(m(1))); %until hitting the top
168+
169+
end
170+
171+
172+
160173
if strcmp(st.safe_name(ann), 'root')
161174
% make sure this isn't just a 'root' area within the brain
162175
m_further_up = m - p*20; % is there more brain 200 microns up along the track?

0 commit comments

Comments
 (0)