File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-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+ 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?
You can’t perform that action at this time.
0 commit comments