Legend:
 Unmodified
 Added
 Removed

aedes.m
r129 r131 105 105 l_PrintLicense([],[]); 106 106 end 107 108 % Detect Matlab version 109 Dat.MatlabVersion = aedes_getmatlabversion; 107 110 108 111 … … 1021 1024 1022 1025 % If JavaFigures are enabled, set image sliders to work while moving 1023 matlab_version = version; 1024 if str2num(matlab_version(1:3))>7.3 1026 if Dat.MatlabVersion>7.3 1025 1027 SliderListener1 = handle.listener(H.IMSLIDER(1),... 1026 1028 'ActionEvent',... … … 1109 1111 1110 1112 % If JavaFigures are enabled, set slider to work while moving 1111 matlab_version = version; 1112 if str2num(matlab_version(1:3))>7.3 1113 if Dat.MatlabVersion>7.3 1113 1114 SliderListener = handle.listener(H.SL_SLIDER,... 1114 1115 'ActionEvent',... … … 1335 1336 'string','Gamma (0.01  4.99)'); 1336 1337 1337 if str2num(matlab_version(1:3))>7.31338 if Dat.MatlabVersion>7.3 1338 1339 ContrastSliderListener = handle.listener(H.CONTRAST_SLIDER,... 1339 1340 'ActionEvent',@l_SetContrastBrightnessGamma); … … 4377 4378 4378 4379 % Suppress warning from get(fh,'javaFrame') generated in Matlab R2008a> 4379 matlab_version = version; 4380 matlab_version = str2num(matlab_version(1:3)); 4381 if matlab_version>=7.6 4380 if Dat.MatlabVersion>=7.6 4382 4381 warning('off','MATLAB:HandleGraphics:ObsoletedProperty:JavaFrame'); 4383 4382 end … … 5937 5936 5938 5937 % Suppress warning from get(fh,'javaFrame') generated in Matlab R2008a> 5939 matlab_version = version; 5940 matlab_version = str2num(matlab_version(1:3)); 5941 if matlab_version>=7.6 5938 if Dat.MatlabVersion>=7.6 5942 5939 warning('off','MATLAB:HandleGraphics:ObsoletedProperty:JavaFrame'); 5943 5940 end … … 7339 7336 %Clim(1) = median(min_val); 7340 7337 %Clim(2) = median(max_val); 7341 normClim = stretchlim(DATA{Dat.DataInd}.FTDATA(:,:,:,Dat.CurrentVol)./max_val,... 7342 [0.005 0.995]); 7343 normClim = max(normClim,[],2); 7344 end 7345 7346 %if max_val<10 7347 Clim(1) = max_val*normClim(1); 7348 Clim(2) = max_val*normClim(2); 7349 %else 7350 % Clim(1) = floor(max_val*normClim(1)); 7351 % Clim(2) = ceil(max_val*normClim(2)); 7352 %end 7338 if any(strcmpi(class(DATA{Dat.DataInd}.FTDATA),{'single','double'})) 7339 normClim = stretchlim(DATA{Dat.DataInd}.FTDATA(:,:,:,Dat.CurrentVol)./max_val,... 7340 [0.005 0.995]); 7341 normClim = max(normClim,[],2); 7342 if max_val<1 7343 Clim(1) = max_val*normClim(1); 7344 Clim(2) = max_val*normClim(2); 7345 else 7346 Clim(1) = fix(max_val*normClim(1)*100)/100; 7347 Clim(2) = fix(max_val*normClim(2)*100)/100; 7348 end 7349 else 7350 normClim = stretchlim(DATA{Dat.DataInd}.FTDATA(:,:,:,Dat.CurrentVol),... 7351 [0.005 0.995]); 7352 normClim = max(normClim,[],2); 7353 Clim(1) = floor(max_val*normClim(1)); 7354 Clim(2) = ceil(max_val*normClim(2)); 7355 end 7356 7357 end 7358 7353 7359 7354 7360 % Update contrast
Note: See TracChangeset
for help on using the changeset viewer.