Changeset 1032 for trunk/src/series/sub_background.m
- Timestamp:
- Mar 22, 2018, 9:27:17 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/sub_background.m
r1027 r1032 107 107 108 108 %% check the validity of input file types 109 ImageTypeOptions={'image','multimage','mmreader','video','cine_phantom' };%allowed input file types(images)109 ImageTypeOptions={'image','multimage','mmreader','video','cine_phantom','image_DaVis'};%allowed input file types(images) 110 110 FileInfo=get_file_info(FirstFileName); 111 111 FileType=FileInfo.FileType; … … 348 348 imwrite(C,newname,'BitDepth',16); % save the new image 349 349 else 350 if ~isfield(FileInfo{1},'BitDepth') 351 FileInfo{1}.BitDepth=16; 352 end 350 353 if isequal(FileInfo{1}.BitDepth,16) 351 354 C=uint16(Acor); … … 379 382 end 380 383 filename=fullfile_uvmat(RootPath{1},SubDir{1},RootFile{1},FileExt{1},NomType{1},i1_series{1}(ifile),[],j1); 381 Aread=read_image(filename,FileType{1},MovieObject{1}, i1_series{1}(ifile));384 Aread=read_image(filename,FileType{1},MovieObject{1},frame_index{1}(ifile)); 382 385 if ndims(Aread)==3;%color images 383 386 Aread=sum(double(Aread),3);% take the sum of color components
Note: See TracChangeset
for help on using the changeset viewer.