source: an2_helpabout.m @ 41

Last change on this file since 41 was 37, checked in by tjniskan, 11 years ago
  • Renamed analyze2.m to aedes.m
  • Changed all references to "Analyze2" -> "Aedes" (hopefully I didn't

break anything...)

  • Added some nifti-tools to misclib
  • Fixed bug in an2_readfid.m that occurred when reading EPI-data

(thanks Teemu)

M an2_export_gui.m
D analyze2.m
M an2_getfilefilter.m
M an2_calc_wait.m
A misclib/nifti4dto3d.m
A misclib/nifti3dto4d.m
A misclib/filter_fmri_data.m
M misclib/dcm_info.m
M an2_cellwrite.m
M an2_revision.m
M startup.m
M an2_readprocpar.m
M an2_fitmaps.m
M an2_read_nifti.m
M an2_data_read.m
D about_analyze2.png
M an2_resviewer.m
M an2_maptool.m
A aedes.m
M an2_helpabout.m
M plugins/save_roi_as_mask.m
M plugins/calculate_t2_map.m
M an2_inputdlg.m
M an2_readctdata.m
M an2_readfid.m
M an2_readfidprefs.m
M an2_readtab.m
M an2_check_updates.m
A about_aedes.png
M an2_saveres.m
M an2_editstack.m
M an2_errordump.m
M an2_update.m
M an2_write_nifti.m

File size: 6.4 KB
Line 
1function an2_helpabout()
2% AN2_HELPABOUT - Show Aedes About dialog
3%   
4%
5% Synopsis:
6%
7% Description:
8%
9% Examples:
10%
11% See also:
12%        AEDES
13
14% This function is a part of Aedes - A graphical tool for analyzing
15% medical images
16%
17% Copyright (C) 2006 Juha-Pekka Niskanen <Juha-Pekka.Niskanen@uku.fi>
18%
19% Department of Physics, (or Department of Neurobiology)
20% University of Kuopio, FINLAND
21%
22% This program may be used under the terms of the GNU General Public
23% License version 2.0 as published by the Free Software Foundation
24% and appearing in the file LICENSE.TXT included in the packaging of
25% this program.
26%
27% This program is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
28% WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
29
30
31%% Load default font and colors
32GD=an2_gui_defaults;
33
34% Position figure to the center of the screen
35scrsz = get(0,'screensize');
36fig_w = 310;
37fig_h = 395;
38fig_pos = [scrsz(3)/2-fig_w/2 scrsz(4)/2-fig_h/2 fig_w fig_h];
39
40%% Main Figure ----------------------------
41fh = figure('Units','Pixel', ...
42            'position',fig_pos,...
43            'Name',['About Aedes'],...
44            'Numbertitle','off', ...
45            'Tag','aedes_about_figure', ...
46            'Color','w',...%GD.col.mainfig, ...
47            'Toolbar','none', ...
48            'Menubar','none', ...
49            'DoubleBuffer','on', ...
50            'DockControls','off',...
51            'renderer','painters',...
52            'Handlevisibility','off',...
53            'windowstyle','modal',...
54            'colormap',gray(256));
55set(fh,'resize','off')
56
57%% Background axes
58bgax = axes('parent',fh,...
59            'units','normal',...
60            'position',[0 0 1 1],...
61            'xlim',[0 1],...
62            'ylim',[0 1],...
63            'visible','off');
64
65%% Image axes
66imax = axes('parent',fh,...
67            'units','pixel',...
68            'position',[0.05*fig_w 0.12*fig_h 0.9*fig_w 0.9*fig_w],...
69            'visible','off',...
70            'ydir','reverse',...
71            'clim',[0 500]);
72uistack(imax,'bottom')
73
74%% Show head image
75fpath=which('aedes');
76[fp,fn,fe]=fileparts(fpath);
77try
78  imdata = imread([fp,filesep,'about_aedes.png']);
79  imdata = imdata(:,:,1);
80catch
81  delete(fh);
82  hh=errordlg('Cannot find file "about_aedes.png"!','Error!',...
83              'modal');
84  return
85end
86sz=size(imdata);
87im=image('parent',imax,'cdata',imdata,...
88         'cdatamapping','scaled');
89set(imax,'xlim',[0.5 sz(1)+0.5],...
90         'ylim',[0.5 sz(2)+0.5],...
91         'clim',[min(min(imdata)) max(max(imdata))])
92set(imax,'clim',[-500 255])
93
94%% Title text
95shadow_tx = text('parent',bgax,...
96                 'horizontalalign','left',...
97                 'units','normal',...
98                 'position',[0.054 0.976],...
99                 'verticalalign','top',...
100                 'string','Aedes 1.0',...
101                 'fontsize',22,...
102                 'fontweig','bold',...
103                 'color',[0 0 0]);
104title_tx = text('parent',bgax,...
105                'horizontalalign','left',...
106                'units','normal',...
107                'position',[0.05 0.98],...
108                'verticalalign','top',...
109                'string','Aedes 1.0',...
110                'fontsize',22,...
111                'fontweig','bold',...
112                'color',[0 0 0.85]);
113
114% Version text
115[rev,repo,wc_dir] = an2_revision;
116version_tx = text('parent',bgax,...
117                  'horizontalalign','left',...
118                  'units','normal',...
119                  'position',[0.10 0.89],...
120                  'verticalalign','top',...
121                  'string',...
122                                  sprintf(['version 1.0 rev %d\n(%s)'],rev,repo),...
123                  'fontsize',10,...
124                  'fontweig','bold',...
125                  'color',[0 0 0]);
126                               
127% Licence notise text
128% tmp = get(version_tx,'position');
129% lic_tx = text('parent',bgax,...
130%   'horizontalalign','left',...
131%   'units','normal',...
132%   'position',[tmp(1) tmp(2)-0.2],...
133%   'verticalalign','top',...
134%   'string',{'Aedes comes with','ABSOLUTELY NO WARRANTY!',...
135%   'This is free software, and you are','welcome to redistribute it under',...
136%   'certain conditions. Please see the','file "license.txt" for details.'},...
137%   'fontsize',10,...
138%   'fontweig','bold',...
139%   'color',[0 0 0]);
140
141% Copyright text
142tmp=get(imax,'position');
143copyright_tx = text('parent',bgax,...
144                    'horizontalalign','left',...
145                    'units','pixel',...
146                    'position',[0.05*fig_w 25],...%[tmp(1) tmp(2)],...
147                    'verticalalign','bottom',...
148                    'string',[char(169),' 2006 Juha-Pekka Niskanen'],...
149                    'fontsize',8,...
150                    'fontweig','bold',...
151                    'color',[0 0 0]);
152
153% Horizontal line
154ln = line('parent',bgax,...
155          'xdata',[0.05 0.95],...
156          'ydata',[0.1 0.1],...
157          'color',[0.8 0.8 0.8]);
158
159% Contact info
160contact_shadow = text('parent',imax,...
161                      'horizontalalign','left',...
162                      'units','normal',...
163                      'position',[0.053 0.047],...
164                      'verticalalign','bottom',...
165                      'string',{'Contact information:','',...
166                    'Juha-Pekka Niskanen,',...
167                    'University of Kuopio,',...
168                    'Department of Physics,',...
169                    'PL 1627, 70211 Kuopio, Finland'...
170                    'Email: Juha-Pekka.Niskanen@uku.fi'},...
171                      'fontsize',8,...
172                      'fontweig','bold',...
173                      'color',[1 1 1]);
174contact_tx = text('parent',imax,...
175                  'horizontalalign','left',...
176                  'units','normal',...
177                  'position',[0.05 0.05],...
178                  'verticalalign','bottom',...
179                  'string',{'Contact information:','',...
180                    'Juha-Pekka Niskanen,',...
181                    'University of Kuopio,',...
182                    'Department of Physics,',...
183                    'PL 1627, 70211 Kuopio, Finland'...
184                    'Email: Juha-Pekka.Niskanen@uku.fi'},...
185                  'fontsize',8,...
186                  'fontweig','bold',...
187                  'color',[0 0 0]);
188
189% Close button
190close_btn = uicontrol('parent',fh,...
191                      'units','normal',...
192                      'position',[0.7 0.01 0.25 0.075],...
193                      'style','pushbutton',...
194                      'string','Close',...
195                      'callback','delete(gcbf)');
Note: See TracBrowser for help on using the repository browser.

Powered by Trac 1.0.9.Copyright © Juha-Pekka Niskanen 2008