Changeset 183


Ignore:
Timestamp:
Dec 21, 2011, 8:21:23 AM (6 years ago)
Author:
tjniskan
Message:

M aedes_data_read.m
M aedes_revision.m

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • aedes_data_read.m

    r182 r183  
    482482        error('Could not read image data from DICOM file "%s"',...
    483483          filename);
    484   end
     484        end
     485       
     486        % Scale data if requested in DICOM headers
     487        if ~isempty(DATA) && isfield(hdr,'RescaleSlope') && isfield(hdr,'RescaleIntercept')
     488                DATA.FTDATA = double(DATA.FTDATA);
     489                DATA.FTDATA = DATA.FTDATA*hdr.RescaleSlope+hdr.RescaleIntercept;
     490        end
     491       
     492       
    485493  if showWbar
    486494        delete(h)
  • aedes_revision.m

    r182 r183  
    9393% bash-script every time it is called so that this file "aedes_revision.m" is
    9494% always in the list of committed files. DO NOT EDIT THE NEXT LINE!!!
    95 % - Svn Hook -
     95% - SVN Hook -
Note: See TracChangeset for help on using the changeset viewer.

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