File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 156156out_of_brain = false ;
157157while ~(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?
You can’t perform that action at this time.
0 commit comments