Changeset 131 for aedes_juigetfiles.m


Ignore:
Timestamp:
Jun 18, 2010, 3:39:14 PM (9 years ago)
Author:
tjniskan
Message:
  • Fixed a bug in detecting Matlab version (starting from Matlab R2010a)
  • Added a function that returns a numerical Matlab (main) version (e.g. 7.6)
  • Fix contrast auto-balancing for uint8 and uint16 images (However, int16

images still behave strangely...)

A aedes_getmatlabversion.m
M aedes.m
M aedes_revision.m
M aedes_juigetfiles.m

File:
1 edited

Legend:

Unmodified
Added
Removed
  • aedes_juigetfiles.m

    r96 r131  
    110110
    111111%% Disable warnings about deprecated functions in Matlab R2008a->
    112 ver = version;
    113 ver = str2num(ver(1:3));
    114 if ver>=7.6
     112version_number = aedes_getmatlabversion;
     113if version_number>=7.6
    115114  warning('off','MATLAB:uitree:DeprecatedFunction');
    116115  warning('off','MATLAB:uitreenode:DeprecatedFunction');
     
    559558 
    560559  %% Add child nodes
    561   matlab_ver = version;
    562   if length(nodes)==1 && strcmp(matlab_ver(1:3),'7.1')
     560  version_number = aedes_getmatlabversion;
     561  if length(nodes)==1 && version_number==7.1
    563562    % Make nodes a JavaArray
    564563    tmpnodes = nodes;
     
    734733
    735734%% Add child nodes
    736 matlab_ver = version;
    737 if length(nodes)==1 && any(strcmp(matlab_ver(1:3),{'7.1','7.2'}))
     735version_number = aedes_getmatlabversion;
     736if length(nodes)==1 && ( version_number==7.1 | version_number==7.2)
    738737  % Make nodes a JavaArray
    739738  tmpnodes = nodes;
     
    953952   
    954953   
    955    matlab_ver = version;
    956    if length(new_nodes)==1 && strcmp(matlab_ver(1:3),'7.1')
     954   version_number = aedes_getmatlabversion;
     955   if length(new_nodes)==1 && version_number==7.1
    957956     % Make nodes a JavaArray
    958957     tmpnodes = new_nodes;
Note: See TracChangeset for help on using the changeset viewer.

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