Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 28 additions & 7 deletions Browsing Functions/AtlasTransformBrowser.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
%

% print instructions
display_controls
display_controls(plane)

% create figure and adjust to user's screen size
% f = figure('Name','Atlas Viewer');
Expand Down Expand Up @@ -80,14 +80,35 @@
set(f, 'WindowButtonMotionFcn',@(f,k)fh_wbmfcn(f, allData, slice_figure, save_location)); % Set the motion detector.

% display user controls in the console
function display_controls
function display_controls(plane)
fprintf(1, '\n Controls: \n');
fprintf(1, '--------- \n');
fprintf(1, 'Navigation: \n');
fprintf(1, 'up: scroll through A/P angles (for coronal sections)\n');
fprintf(1, 'right: scroll through M/L angles (for coronal sections)\n');
fprintf(1, 'down: scroll through slices \n');
fprintf(1, 'scroll: move between slices \n');
switch plane
case 'coronal'
fprintf(1, 'up: scroll through D/V angles (for coronal sections)\n');
fprintf(1, 'right: scroll through M/L angles (for coronal sections)\n');
fprintf(1, 'down: scroll through A/P atlas slices \n');
fprintf(1, 'left: scroll for Slice Viewer \n');

fprintf(1, 'scroll: move between slices or angles \n');
case 'sagittal'
fprintf(1, 'up: scroll through D/V angles (for sagittal sections)\n');
fprintf(1, 'right: scroll through A/P angles (for sagittal sections)\n');
fprintf(1, 'down: scroll through M/L atlas slices \n');
fprintf(1, 'left: scroll for Slice Viewer \n');

fprintf(1, 'scroll: move between slices or angles \n');

case 'transverse'
fprintf(1, 'up: scroll through M/L angles (for transverse sections)\n');
fprintf(1, 'right: scroll through A/P angles (for transverse sections)\n');
fprintf(1, 'down: scroll through D/V atlas slices \n');
fprintf(1, 'left: scroll for Slice Viewer \n');

fprintf(1, 'scroll: move between slices or angles \n');

end

fprintf(1, '\n Registration: \n');
fprintf(1, 't: toggle mode where clicks are logged for transform \n');
Expand Down Expand Up @@ -123,7 +144,7 @@ function hotkeyFcn(f, slice_figure, keydata, allData, save_location, save_suffix
switch key_letter
% space -- display controls
case 'space'
display_controls
display_controls(ud.plane)
% o -- toggle showing brain region overlay
case 'o'
ud.showOverlay = ~ud.showOverlay;
Expand Down