Ignore:
Timestamp:
Mar 22, 2018, 9:27:17 PM (6 years ago)
Author:
sommeria
Message:

reading LaVision? images improved

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series/sub_background.m

    r1027 r1032  
    107107
    108108    %% 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)
    110110    FileInfo=get_file_info(FirstFileName);
    111111    FileType=FileInfo.FileType;
     
    348348            imwrite(C,newname,'BitDepth',16); % save the new image
    349349        else
     350            if ~isfield(FileInfo{1},'BitDepth')
     351                FileInfo{1}.BitDepth=16;
     352            end
    350353            if isequal(FileInfo{1}.BitDepth,16)
    351354                C=uint16(Acor);
     
    379382                end
    380383                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));
    382385                if ndims(Aread)==3;%color images
    383386                    Aread=sum(double(Aread),3);% take the sum of color components
Note: See TracChangeset for help on using the changeset viewer.