Changeset 980


Ignore:
Timestamp:
Jan 13, 2017, 2:40:34 PM (8 years ago)
Author:
sommeria
Message:

read_cine_phantom update

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/read_cine_phantom.m

    r979 r980  
    2121   
    2222    fseek(fid, imageLocations( frames(ii) ), 'bof');
     23    if ~BitmapInfoHeader.biCompression
     24        imTemp = fread(fid, [BitmapInfoHeader.biWidth BitmapInfoHeader.biHeight],'uint16');
     25        imMat(:,:,ii) = imTemp';
     26    else
    2327    imTemp = fread(fid, [BitmapInfoHeader.biWidth BitmapInfoHeader.biHeight], 'ubit10','b');
    2428    im = imTemp';
     
    3943     dispStr = ['Reading is ' num2str( round( 100*ii/Nf ) ) '% complete'];
    4044     disp( [char(8)*ones(1,lenDispStr+1) dispStr] )
    41        
     45    end
    4246    end
    4347end
     
    4751
    4852function lookupTable = lookupTablePackedFun()
    49 
     53% function to transform the compressed 10 bit images back, close to the 12 bit camera images
    5054lookupTable = [ 2,   5,   6,   7,   8,   9,  10,  11,  12,  13,  14,  15,  16,  17,  17,  18,...
    515519,  20,  21,  22, 23,  24,  25,  26,  27,  28,  29,  30,  31,  32,  33,  33,...
  • trunk/src/read_field.m

    r977 r980  
    252252    case 'rdvision'
    253253        [A,FileInfo,timestamps]=read_rdvision(FileName,num);
     254    case 'cine_phantom'
     255        [A,FileInfo] = read_cine_phantom(FileName,num );
    254256    otherwise
    255257        errormsg=[ FileType ': invalid input file type for uvmat'];
Note: See TracChangeset for help on using the changeset viewer.