Changeset 121 for aedes_readfdf.m


Ignore:
Timestamp:
Apr 28, 2010, 3:57:51 PM (9 years ago)
Author:
tjniskan
Message:
  • Fixed contrast auto-balance to work with datas that are in [0 1] range
  • aedes_readfdf now reads also SWIFT reconstruction FDF:s

M aedes_readfdf.m
M aedes.m
M aedes_revision.m

File:
1 edited

Legend:

Unmodified
Added
Removed
  • aedes_readfdf.m

    r80 r121  
    114114  count=count+1;
    115115 
    116   % Check first char on the line
    117   isnull=double(fread(file_fid,1,'char'))==0;
    118   if isnull
     116  % Check first and second char on the line.
     117  % In SWIFT reconstruction fdf:s there can be an additional
     118  % form feed character (12) before NULL...
     119  tmp=double(fread(file_fid,2,'char'));
     120  if any(tmp==0)
    119121    done=true;
    120122    continue;
    121123  else
    122124    % Move file indicator back
    123     fseek(file_fid,-1,0);
     125    fseek(file_fid,-2,0);
    124126  end
    125127 
Note: See TracChangeset for help on using the changeset viewer.

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