0001 function dater = QA(inDir)
0002
0003
0004
0005
0006
0007
0008
0009 firstfile = fullfile(inDir,'I.001');
0010
0011
0012 [su_hdr,ex_hdr,se_hdr,im_hdr,pix_hdr,im_offset] = GE_readHeader(firstfile);
0013
0014 nX = im_hdr.imatrix_X;
0015 nY = im_hdr.imatrix_Y;
0016 nZ = im_hdr.slquant;
0017 volSize = [nX nY nZ];
0018 adwcount = im_hdr.user9;
0019
0020
0021
0022
0023
0024 done = 0;
0025 imageVol = zeros(nX,nY,nZ);
0026 dater = zeros(nX,nY,nZ,adwcount);
0027 for i = 1:adwcount
0028
0029 [imageVol, lastfile] = GE_readVolume(inDir, i+1, volSize, 16, im_offset);
0030 dater(:,:,:,i) = imageVol;
0031
0032 fprintf('read %s\n',lastfile);
0033
0034 end
0035
0036 return