Skip to content

Commit 9e614f5

Browse files
Better action. But perhaps there is a bug about coronal sections?
1 parent ad89d91 commit 9e614f5

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Browsing Functions/AtlasTransformBrowser.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,11 @@ function hotkeyFcn(f, slice_figure, keydata, allData, save_location, save_suffix
190190

191191
disp(['probe point mode -- selecting probe ' num2str(ud.currentProbe) ' (' ud.ProbeColor{ud.currentProbe} ')']);
192192
ud.getPoint_for_transform = false;
193+
try
194+
set(ud.pointHands_for_transform(:), 'Visible', 'off');
195+
ud.pointsText.Visible = 'off';
196+
catch
197+
end
193198

194199
% show Transformed Slice & Probage Viewer, if not already showing
195200
if ~ud.slice_at_shift_start; add = 1; else; add = 0; end

Browsing Functions/sliceBrowser.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ function sliceClickCallback(im, keydata)
6161
clickY = round(keydata.IntersectionPoint(2));
6262

6363
ud.pointList(end+1, :) = [clickX, ud.ref_size(1) - clickY];
64-
ud.pointHands(end+1) = plot(ud.sliceAx, clickX, clickY, 'ro', 'color', [0 .5 0],'linewidth',2,'markers',4);
64+
set(ud.pointHands,'Color',[.7 .3 .3])
65+
ud.pointHands(end+1) = plot(ud.sliceAx, clickX, clickY, 'o', 'color', [0 .9 0],'linewidth',2,'markers',4);
6566

6667
if clickX < 100 && (ud.ref_size(1) - clickY) < 100 % if click in corner, break
6768
ud.pointList = [];
@@ -134,6 +135,7 @@ function SliceAtlasHotkeyFcn(fig, keydata, f)
134135

135136

136137
function ud = updateSliceImage(ud)
138+
%TODO occasionally pointList has more items than pointHands
137139

138140
title_ending = '';
139141

@@ -169,6 +171,8 @@ function SliceAtlasHotkeyFcn(fig, keydata, f)
169171
for i = 1:size(ud.pointList,1)
170172
ud.pointHands(end+1) = plot(ud.sliceAx, ud.pointList(i,1), ud.ref_size(1) - ud.pointList(i,2), 'ro', 'color', [0 .5 0],'linewidth',2,'markers',4);
171173
end
174+
set(ud.pointHands(end),'color', [0 .9 0]);
175+
172176
title_ending = ' (transform points loaded)';
173177
end
174178
end

0 commit comments

Comments
 (0)