📄 pet_result_3v_ui.m
字号:
x = x+w;
w = .1;
pos = [x y w h];
h1 = uicontrol('Parent',h0, ...
'Units','normal', ...
'Visible','off', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'fontunit','normal', ...
'FontSize',fnt, ...
'HorizontalAlignment','center', ...
'ListboxTop',0, ...
'Position',pos, ...
'String','', ...
'Tooltip','Always calculated from standard normal distribution', ...
'Style','text', ...
'Tag','PValue');
x = .05;
y = y-h-.01;
w = .12;
pos = [x y w h];
h1 = uicontrol('Parent',h0, ...
'Units','normal', ...
'Visible','on', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'fontunit','normal', ...
'FontSize',fnt, ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',pos, ...
'String','Curr. Ratio:', ...
'Style','text', ...
'Tag','BSValueLabel');
x = x+w;
w = .1;
pos = [x y w h];
h1 = uicontrol('Parent',h0, ...
'Units','normal', ...
'Visible','on', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'fontunit','normal', ...
'FontSize',fnt, ...
'HorizontalAlignment','center', ...
'ListboxTop',0, ...
'Position',pos, ...
'String','', ...
'Style','text', ...
'Tag','BSValue');
x = .05;
y = y-h-.02;
w = .12;
pos = [x y w h];
h1 = uicontrol('Parent',h0, ...
'Units','normal', ...
'Visible','off', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'fontunit','normal', ...
'FontSize',fnt, ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',pos, ...
'String','Min. Ratio:', ...
'Style','text', ...
'Tag','MinRatioLabel');
x = x+w;
y = y+.01;
w = .1;
pos = [x y w h];
h1 = uicontrol('Parent',h0, ...
'Units','normal', ...
'Visible','off', ...
'BackgroundColor',[1 1 1], ...
'fontunit','normal', ...
'FontSize',fnt, ...
'ListboxTop',0, ...
'Position',pos, ...
'Style','edit', ...
'Callback','pet_result_3v_ui(''EditMin'')', ...
'Tag','MinRatio');
x = .05;
y = y-h-.02;
w = .12;
pos = [x y w h];
h1 = uicontrol('Parent',h0, ...
'Units','normal', ...
'Visible','off', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'fontunit','normal', ...
'FontSize',fnt, ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',pos, ...
'String','Max. Ratio:', ...
'Style','text', ...
'Tag','MaxRatioLabel');
x = x+w;
y = y+.01;
w = .1;
pos = [x y w h];
h1 = uicontrol('Parent',h0, ...
'Units','normal', ...
'Visible','off', ...
'BackgroundColor',[1 1 1], ...
'fontunit','normal', ...
'FontSize',fnt, ...
'ListboxTop',0, ...
'Position',pos, ...
'Style','edit', ...
'Callback','pet_result_3v_ui(''EditMax'')', ...
'Tag','MaxRatio');
% Voxel Location
x = .03;
y = .38;
w = .26;
h = .12;
pos = [x y w h];
h1 = uicontrol('Parent',h0, ... % Voxel location frame
'Units','normal', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'ListboxTop',0, ...
'Position',pos, ...
'Style','frame', ...
'Tag','LocationFrame');
x = .04;
y = .44;
w = .08;
h = .04;
pos = [x y w h];
h1 = uicontrol('Parent',h0, ... % Voxel coord. label
'Units','normal', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'fontunit','normal', ...
'FontSize',fnt, ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',pos, ...
'String','XYZ:', ...
'ToolTipString','Absolute coxel coordinates', ...
'Style','text', ...
'Tag','XYZVoxelLabel');
x = x+w+0.01;
y = y+.01;
w = .04;
pos = [x y w h];
h1 = uicontrol('Parent',h0, ...
'Units','normal', ...
'fontunit','normal', ...
'FontSize',fnt, ...
'HorizontalAlignment','center', ...
'ListboxTop',0, ...
'Position',pos, ...
'String','go', ...
'ToolTipString','Click to select the XYZ you entered', ...
'Style','push', ...
'Callback','pet_result_3v_ui(''EditXYZ'')');
x = x+w;
w = .1;
pos = [x y w h];
h1 = uicontrol('Parent',h0, ... % Voxel coord. text
'Units','normal', ...
'BackgroundColor',[1 1 1], ...
'fontunit','normal', ...
'FontSize',fnt, ...
'HorizontalAlignment','center', ...
'ListboxTop',0, ...
'Position',pos, ...
'String','', ...
'ToolTipString','Absolute voxel coordinates', ...
'Style','edit', ...
'Callback','pet_result_3v_ui(''EditXYZ'')', ...
'Tag','XYZVoxel');
x = .04;
y = y-h-0.02;
w = .08;
pos = [x y w h];
h1 = uicontrol('Parent',h0, ... % Origin label
'Units','normal', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'fontunit','normal', ...
'FontSize',fnt, ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',pos, ...
'String','XYZ(mm):', ...
'ToolTipString','Voxel coordinates w.r.t. the origin', ...
'Style','text', ...
'user', 1, ...
'Tag','XYZmmLabel');
% 'BackgroundColor',[1 1 1], ...
% 'String',{'MNI','Talairach'}, ...
% 'Style','popupmenu', ...
% 'Callback','pet_result_3v_ui(''XYZmmLabel'')', ...
x = x+w+0.01;
w = .14;
pos = [x y w h];
h1 = uicontrol('Parent',h0, ... % Origin text
'Units','normal', ...
'BackgroundColor',[1 1 1], ...
'fontunit','normal', ...
'FontSize',fnt, ...
'HorizontalAlignment','center', ...
'ListboxTop',0, ...
'Position',pos, ...
'String','', ...
'ToolTipString','Voxel coordinates w.r.t. the origin', ...
'Style','edit', ...
'Callback','pet_result_3v_ui(''EditXYZmm'')', ...
'Tag','XYZmm');
x = .05;
y = .32;
w = .22;
pos = [x y w h];
h1 = uicontrol('Parent',h0, ... % rescale button
'Units','normal', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'fontunit','normal', ...
'FontSize',fnt, ...
'ListboxTop',0, ...
'Position',pos, ...
'HorizontalAlignment', 'left', ...
'String','Scale by Singular Value', ...
'Style','check', ...
'Value',1, ...
'Visible','off', ...
'Callback','pet_result_3v_ui(''RescaleBnPress'')', ...
'Tag','RESCALECheckbox');
% 'HorizontalAlignment', 'center', ...
% h1 = uicontrol('Parent',h0, ... % plot button
% 'Units','pixels', ...
% 'Callback','pet_result_3v_ui(''PlotBnPress'')', ...
% 'FontSize',10, ...
% 'ListboxTop',0, ...
% 'Position',[28 40 67 28], ...
% 'String','PLOT', ...
% 'Tag','PLOTButton');
x = .1;
y = .1;
w = .1;
pos = [x y w h];
h1 = uicontrol('Parent',h0, ... % close button
'Units','normal', ...
'Callback','close(gcf);', ...
'fontunit','normal', ...
'FontSize',fnt, ...
'ListboxTop',0, ...
'Position',pos, ...
'String','AXIAL', ...
'Tag','CLOSEButton');
% 'Callback','pet_result_3v_ui(''CloseFigure'');', ...
x = 0.01;
y = 0;
w = .5;
pos = [x y w h];
h1 = uicontrol('Parent',h0, ... % Message Line
'Style','text', ...
'Units','normal', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'ForegroundColor',[0.8 0.0 0.0], ...
'fontunit','normal', ...
'FontSize',fnt, ...
'HorizontalAlignment','left', ...
'Position',pos, ...
'String','', ...
'Tag','MessageLine');
% File submenu
%
h_file = uimenu('Parent',h0, ...
'Label','&File', ...
'Tag','FileMenu', ...
'Visible','on');
% newcolor: just made invisible
%
h2 = uimenu(h_file, ...
'Label','&Load Background Template File', ...
'Tag','LoadTemplateFile', ...
'visible','off', ...
'Callback','pet_result_3v_ui(''LoadTemplateFile'')');
h2 = uimenu(h_file, ...
'Label','&Load Background Image', ...
'Tag','LoadBGImage', ...
'Callback','pet_result_3v_ui(''LoadBackgroundImage'')');
h2 = uimenu(h_file, ...
'Label','Save brain region to IMG file', ...
'Tag','SaveBGImage', ...
'Callback','pet_result_3v_ui(''SaveBackgroundImage'')');
h2 = uimenu(h_file, ...
'Label','&Load PLS Result', ...
'Tag','LoadPETResult', ...
'visible', 'off', ...
'Callback','pet_result_3v_ui(''LoadResultFile'')');
h2 = uimenu(h_file, ...
'Label','&Save Current Display to the IMG files', ...
'Tag','SaveDisplayToIMG', ...
'Callback','pet_result_3v_ui(''SaveDisplayToIMG'')');
h2 = uimenu(h_file, ...
'Label','&Save BLV to the IMG files', ...
'Tag','SaveResultToIMG', ...
'Callback','pet_result_3v_ui(''SaveResultToIMG'')');
rri_file_menu(h0, 0);
h2 = uimenu(h_file, ...
'Label','&Close', ...
'separator', 'on', ...
'Tag','CloseFigure', ...
'Callback','pet_result_3v_ui(''CloseFigure'');');
% Xhair submenu
%
h_xhair = uimenu('Parent',h0, 'Label','Crosshair');
h2 = uimenu('Parent',h_xhair, ...
'Label','Crosshair off', ...
'Userdata', 0, ...
'Callback','pet_result_3v_ui(''crosshair'')', ...
'Tag','XhairToggleMenu');
h2 = uimenu('Parent',h_xhair, ...
'Label','Color ...', ...
'Userdata', [1 0 0], ...
'Callback','pet_result_3v_ui(''set_xhair_color'')', ...
'Tag','XhairColorMenu');
% Zoom submenu
%
h2 = uimenu('Parent',h0, ...
'Label','&Zoom on', ...
'Userdata', 1, ...
'Callback','pet_result_3v_ui(''Zooming'')', ...
'Tag','ZoomToggleMenu');
% Rotate submenu
%
h_rot = uimenu('Parent',h0, ...
'Label','&Image Rotation', ...
'visible', 'off', ...
'Tag','RotationMenu');
h2 = uimenu('Parent',h_rot, ...
'Label','&none', ... % rotate 90 by default
'Checked','on', ...
'Callback','pet_result_3v_ui(''Rotation'',1)', ...
'Tag','Rotate0Menu');
h2 = uimenu('Parent',h_rot, ...
'Label','&90 degree', ... % another 90 degree
'Checked','off', ...
'Callback','pet_result_3v_ui(''Rotation'',2)', ...
'Tag','Rotate90Menu');
h2 = uimenu('Parent',h_rot, ...
'Label','&180 degree', ... % now become 270 degree
'Checked','off', ...
'Callback','pet_result_3v_ui(''Rotation'',3)', ...
'Tag','Rotate180Menu');
h2 = uimenu('Parent',h_rot, ...
'Label','&270 degree', ... % now completed 360 degree
'Checked','off', ...
'Callback','pet_result_3v_ui(''Rotation'',0)', ...
'Tag','Rotate270Menu');
% View submenu
%
h_view = uimenu('Parent',h0, ...
'Label','&View', ...
'Tag','ViewMenu', ...
'Visible','on');
h2 = uimenu('Parent',h_view, ...
'Label','&View Brain LV', ...
'Userdata', 1, ...
'Callback','pet_result_3v_ui(''Toggle_View'')', ...
'Tag','ViewToggleMenu');
% Window submenu
%
h_pls = uimenu('Parent',h0, ...
'Label','&Windows', ...
'Tag','WindowsMenu', ...
'Visible','on');
h2 = uimenu(h_pls, ...
'Label','&Singular Values Plot', ...
'Tag','OpenEigenPlot', ...
'Callback','pet_result_3v_ui(''OpenEigenPlot'')');
h2 = uimenu(h_pls, ...
'Label','&Behavior LV and Behavior Scores Plot', ...
'Visible','off', ...
'Tag','OpenBehavPlot', ...
'Callback','pet_result_3v_ui(''OpenScoresPlot'',0)');
h2 = uimenu(h_pls, ...
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -