Skip to content

Commit

Permalink
Better action. But perhaps there is a bug about coronal sections?
Browse files Browse the repository at this point in the history
  • Loading branch information
kouichi-c-nakamura committed Oct 31, 2022
1 parent ad89d91 commit 9e614f5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Browsing Functions/AtlasTransformBrowser.m
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,11 @@ function hotkeyFcn(f, slice_figure, keydata, allData, save_location, save_suffix

disp(['probe point mode -- selecting probe ' num2str(ud.currentProbe) ' (' ud.ProbeColor{ud.currentProbe} ')']);
ud.getPoint_for_transform = false;
try
set(ud.pointHands_for_transform(:), 'Visible', 'off');
ud.pointsText.Visible = 'off';
catch
end

% show Transformed Slice & Probage Viewer, if not already showing
if ~ud.slice_at_shift_start; add = 1; else; add = 0; end
Expand Down
6 changes: 5 additions & 1 deletion Browsing Functions/sliceBrowser.m
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ function sliceClickCallback(im, keydata)
clickY = round(keydata.IntersectionPoint(2));

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

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


function ud = updateSliceImage(ud)
%TODO occasionally pointList has more items than pointHands

title_ending = '';

Expand Down Expand Up @@ -169,6 +171,8 @@ function SliceAtlasHotkeyFcn(fig, keydata, f)
for i = 1:size(ud.pointList,1)
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);
end
set(ud.pointHands(end),'color', [0 .9 0]);

title_ending = ' (transform points loaded)';
end
end
Expand Down

1 comment on commit 9e614f5

@kouichi-c-nakamura
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "bug" I mentioned in the commit comment was confirmed with the master branch as well.

Please sign in to comment.