source: aedes_getmatlabversion.m

Last change on this file was 148, checked in by tjniskan, 7 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: 1.6 KB
Line 
1function [version_number,isImProcToolbox] = aedes_getmatlabversion()
2% AEDES_GETMATLABVERSION - Returns the numerical Matlab (main) version
3%   
4%
5% Synopsis:
6%       [version_number,isImProcToolbox] = aedes_getmatlabversion;
7%
8% Description:
9%       Returns the numerical Matlab (main) version. The number is converted
10%       to a proper decimal format (e.g. Matlab 7.6 -> 7.06, Matlab 7.10 ->
11%       7.1). The availability of Image Processing Toolbox is also
12%       returned in isImProcToolbox.
13%
14% Examples:
15%       [version_number,isImProcToolbox] = aedes_getmatlabversion;
16%
17% See also:
18%       
19
20% This function is a part of Aedes - A graphical tool for analyzing
21% medical images
22%
23% Copyright (C) 2006 Juha-Pekka Niskanen <Juha-Pekka.Niskanen@uku.fi>
24%
25% Department of Physics, Department of Neurobiology
26% University of Kuopio, FINLAND
27%
28% This program may be used under the terms of the GNU General Public
29% License version 2.0 as published by the Free Software Foundation
30% and appearing in the file LICENSE.TXT included in the packaging of
31% this program.
32%
33% This program is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
34% WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
35
36version_str = version;
37isImProcToolbox = false;
38ind = find(version_str=='.');
39major_ver = str2double(version_str(1:ind(1)-1));
40minor_ver = str2double(version_str(ind(1)+1:ind(2)-1));
41version_number = str2double(sprintf('%d.%02d',major_ver,minor_ver));
42if nargout>1
43  try
44    s=ver;
45    toolboxes = {s(:).Name};
46    if any(strcmpi(toolboxes,'Image Processing Toolbox'))
47      isImProcToolbox = true;
48    end
49  catch
50    isImProcToolbox = false;
51  end
52end
Note: See TracBrowser for help on using the repository browser.

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