Changeset 979
- Timestamp:
- Jan 12, 2017, 7:45:20 PM (8 years ago)
- Location:
- trunk/src
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/get_file_info.m
r977 r979 59 59 FileInfo.CivStage=6; % A MODIFIER 60 60 end 61 case '.cine' 62 [FileInfo,BitmapInfoHeader, CameraSetup]=readCineHeader(fileinput); 63 FileInfo.FileType='cine_phantom'; 64 FileInfo.NumberOfFrames=FileInfo.ImageCount; 65 FileInfo.FrameRate=CameraSetup.FrameRate; 66 FileInfo.Height=BitmapInfoHeader.biHeight; 67 FileInfo.Width=BitmapInfoHeader.biWidth; 61 68 otherwise 62 69 if ~isempty(FileExt)% exclude empty extension -
trunk/src/read_image.m
r977 r979 46 46 ObjectOut=VideoObject;%default 47 47 switch FileType 48 case 'video' 49 if strcmp(class(VideoObject),'VideoReader') 50 A=read(VideoObject,num); 51 else 52 ObjectOut=VideoReader(FileName); 53 A=read(ObjectOut,num); 54 end 55 case 'mmreader' 56 if strcmp(class(VideoObject),'mmreader') 57 A=read(VideoObject,num); 58 else 59 ObjectOut=mmreader(FileName); 60 A=read(ObjectOut,num); 61 end 48 case 'video' 49 if strcmp(class(VideoObject),'VideoReader') 50 A=read(VideoObject,num); 51 else 52 ObjectOut=VideoReader(FileName); 53 A=read(ObjectOut,num); 54 end 55 case 'mmreader' 56 if strcmp(class(VideoObject),'mmreader') 57 A=read(VideoObject,num); 58 else 59 ObjectOut=mmreader(FileName); 60 A=read(ObjectOut,num); 61 end 62 case 'cine_phantom' 63 A = read_cine_phantom(FileName,num ); 62 64 case 'multimage' 63 65 A=imread(FileName,num); 64 case 'image' 66 case 'image' 65 67 A=imread(FileName); 66 68 end -
trunk/src/series.m
r977 r979 1822 1822 case {'PCWIN','PCWIN64'} %Windows system 1823 1823 filexml=regexprep(filexml,'\\','\\\\');% add '\' so that '\' are left as characters 1824 system([ActionFullName ' ' RunTime ' ' filexml ]);% TODO: adapt to DOS system1824 system([ActionFullName ' ' RunTime ' ' filexml{iprocess}]);% TODO: adapt to DOS system 1825 1825 case {'GLNX86','GLNXA64','MACI64'}%Linux system 1826 system([ActionFullName ' ' RunTime ' ' filexml ]);1826 system([ActionFullName ' ' RunTime ' ' filexml{iprocess}]); 1827 1827 end 1828 1828 end -
trunk/src/series/civ_input.m
r977 r979 111 111 iview_image=1;%line # for the input images 112 112 switch FileType 113 case {'image','multimage','video','mmreader',' netcdf'}113 case {'image','multimage','video','mmreader','cine_phantom','netcdf'} 114 114 % NomTypeImaA=NomTypeInput; 115 115 % iview_image=1;%line # for the input images -
trunk/src/series/extract_rdvision.m
r977 r979 283 283 return 284 284 end 285 difftime=XmlData.Time(2:end,2:end)-(reshape(timestamp ,nbfield2,[]))';285 difftime=XmlData.Time(2:end,2:end)-(reshape(timestamp(1:end-1),nbfield2,[]))'; 286 286 disp(['time from xml and timestamp differ by ' num2str(max(max(abs(difftime))))]) 287 287 if max(abs(difftime))>0.01
Note: See TracChangeset
for help on using the changeset viewer.