Changeset 980
- Timestamp:
- Jan 13, 2017, 2:40:34 PM (8 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/read_cine_phantom.m
r979 r980 21 21 22 22 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 23 27 imTemp = fread(fid, [BitmapInfoHeader.biWidth BitmapInfoHeader.biHeight], 'ubit10','b'); 24 28 im = imTemp'; … … 39 43 dispStr = ['Reading is ' num2str( round( 100*ii/Nf ) ) '% complete']; 40 44 disp( [char(8)*ones(1,lenDispStr+1) dispStr] ) 41 45 end 42 46 end 43 47 end … … 47 51 48 52 function lookupTable = lookupTablePackedFun() 49 53 % function to transform the compressed 10 bit images back, close to the 12 bit camera images 50 54 lookupTable = [ 2, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 17, 18,... 51 55 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 33,... -
trunk/src/read_field.m
r977 r980 252 252 case 'rdvision' 253 253 [A,FileInfo,timestamps]=read_rdvision(FileName,num); 254 case 'cine_phantom' 255 [A,FileInfo] = read_cine_phantom(FileName,num ); 254 256 otherwise 255 257 errormsg=[ FileType ': invalid input file type for uvmat'];
Note: See TracChangeset
for help on using the changeset viewer.