source: aedes_helpabout.m @ 148

Last change on this file since 148 was 148, checked in by tjniskan, 9 years ago
  • Added aedes_roifill.m for doing binary flood fill operation. This is

much slower than using the imfill-function, but does not dependend on
Image Processing toolbox. The goal is to make Aedes run with just the
base Matlab install. DICOM support will probably be the last obstacle
in achieving this, because it's going to be a great pain in the a to
code...

  • Fixed overwriting ROIs in aedes_roi_copy_gui.m and added additional

information in the ROI copy button tooltips.

  • Some further iterations to the new readvnmr-function.

M aedes_roi_copy_gui.m
M aedes_getmatlabversion.m
M aedes_readvnmr.m
M aedes.m
M aedes_helpabout.m
M aedes_readfid.m
M aedes_revision.m
A aedes_roifill.m

File size: 6.4 KB
Line 
1function aedes_helpabout()
2% AEDES_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, 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=aedes_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',[(fig_w-256)/2 0.65*fig_h 256 130],...
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,'aedes_logo.png']);
79  %imdata = imdata(:,:,1);
80catch
81  delete(fh);
82  hh=errordlg('Cannot find file "aedes_logo.png"!','Error!',...
83              'modal');
84  return
85end
86
87sz=size(imdata);
88im=image('parent',imax,'cdata',imdata,...
89  'cdatamapping','scaled');
90set(imax,'xlim',[0.5 sz(2)+0.5],...
91  'ylim',[0.5 sz(1)+0.5])
92
93% %% Title text
94% shadow_tx = text('parent',bgax,...
95%                  'horizontalalign','left',...
96%                  'units','normal',...
97%                  'position',[0.054 0.976],...
98%                  'verticalalign','top',...
99%                  'string','Aedes 1.0',...
100%                  'fontsize',22,...
101%                  'fontweig','bold',...
102%                  'color',[0 0 0]);
103% title_tx = text('parent',bgax,...
104%                 'horizontalalign','left',...
105%                 'units','normal',...
106%                 'position',[0.05 0.98],...
107%                 'verticalalign','top',...
108%                 'string','Aedes 1.0',...
109%                 'fontsize',22,...
110%                 'fontweig','bold',...
111%                 'color',[0 0 0.85]);
112
113% Version text
114[rev,repo,wc_dir] = aedes_revision;
115version_tx = text('parent',bgax,...
116                  'horizontalalign','left',...
117                  'units','normal',...
118                  'position',[0.10 0.63],...
119                  'verticalalign','top',...
120                  'string',...
121                                  sprintf(['version 1.0 rev %d\n%s'],rev,'http://aedes.uku.fi'),...
122                  'fontsize',10,...
123                  'fontweig','bold',...
124                  'color',[0 0 0]);
125                               
126% Licence notise text
127tmp = get(version_tx,'position');
128lic_tx = text('parent',bgax,...
129  'horizontalalign','left',...
130  'units','normal',...
131  'position',[tmp(1) tmp(2)-0.1],...
132  'verticalalign','top',...
133  'string',{'Aedes comes with ABSOLUTELY NO WARRANTY!',...
134  'This is free software, and you are welcome to',...
135  'redistribute it under certain conditions. Please ',...
136  'see the file "license.txt" for details.'},...
137  'fontsize',8,...
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',bgax,...
161                      'horizontalalign','left',...
162                      'units','normal',...
163                      'position',[0.1 0.117],...
164                      'verticalalign','bottom',...
165                      'string',{'Contact information:','',...
166                    'Juha-Pekka Niskanen,',...
167                    'Biomedical NMR Group,',...
168                    'A. I. Virtanen Institute for Molecular Sciences,',...
169                    'University of Eastern Finland, Finland'...
170                    'Email: Juha-Pekka.Niskanen@uef.fi'},...
171                      'fontsize',8,...
172                      'fontweig','bold',...
173                      'color',[1 1 1]);
174contact_tx = text('parent',bgax,...
175                  'horizontalalign','left',...
176                  'units','normal',...
177                  'position',[0.1 0.12],...
178                  'verticalalign','bottom',...
179                  'string',{'Contact information:','',...
180                    'Juha-Pekka Niskanen,',...
181                    'Biomedical NMR Group,',...
182                    'A. I. Virtanen Institute for Molecular Sciences,',...
183                    'University of Eastern Finland, Finland'...
184                    'Email: Juha-Pekka.Niskanen@uef.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