Changeset 783 for trunk/src/uvmat.m


Ignore:
Timestamp:
Jun 5, 2014, 10:39:28 PM (10 years ago)
Author:
sommeria
Message:

-pb of mulitple tiff reading solved
-modif of output parma in get-file_type and find_file_series

  • introduction of transform/ima_noise_rms
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r782 r783  
    643643[RootPath,SubDir,RootFile,FileIndices,FileExt]=read_file_boxes(handles);
    644644% detect the file type, get the movie object if relevant, and look for the corresponding file series:
    645 [RootPath,SubDir,RootFile,i1_series,i2_series,j1_series,j2_series,tild,FileType,FileInfo,MovieObject]=find_file_series(fullfile(RootPath,SubDir),[RootFile FileIndices FileExt]);
     645[RootPath,SubDir,RootFile,i1_series,i2_series,j1_series,j2_series,tild,FileInfo,MovieObject]=find_file_series(fullfile(RootPath,SubDir),[RootFile FileIndices FileExt]);
    646646if isempty(i1_series)
    647647    fileinput=uigetfile_uvmat('pick an input file',fullfile(RootPath,SubDir));
     
    666666    [RootPath,SubDir,RootFile,FileIndices,FileExt]=read_file_boxes_1(handles);
    667667    % detect the file type, get the movie object if relevant, and look for the corresponding file series:
    668     [RootPath,SubDir,RootFile,i1_series,i2_series,j1_series,j2_series,tild,FileType,FileInfo,MovieObject]=find_file_series(fullfile(RootPath,SubDir),[RootFile FileIndices FileExt]);
     668    [RootPath,SubDir,RootFile,i1_series,i2_series,j1_series,j2_series,tild,FileInfo,MovieObject]=find_file_series(fullfile(RootPath,SubDir),[RootFile FileIndices FileExt]);
    669669    if isempty(i1_series)
    670670        fileinput=uigetfile_uvmat('pick an input file for the second line',fullfile(RootPath,SubDir));
     
    737737% detect the file type, get the movie object if relevant, and look for the corresponding file series:
    738738% the root name and indices may be corrected by including the first index i1 if a corresponding xml file exists
    739 [RootPath,SubDir,RootFile,i1_series,i2_series,j1_series,j2_series,NomType,FileType,FileInfo,MovieObject,i1,i2,j1,j2]=find_file_series(FilePath,[FileName FileExt]);
    740 
     739[RootPath,SubDir,RootFile,i1_series,i2_series,j1_series,j2_series,NomType,FileInfo,MovieObject,i1,i2,j1,j2]=find_file_series(FilePath,[FileName FileExt]);
     740FileType=FileInfo.FileType;
    741741if strcmp(FileType,'txt')
    742742    try
     
    13841384            for ifile=1:numel(ListFiles)
    13851385                [tild,tild,MaskExt]=fileparts(ListFiles{1});
    1386                 [tild,tild,MaskFile{ifile},i1_series,i2_series,j1_series,j2_series,MaskNomType,MaskFileType]=find_file_series(MaskPath,ListFiles{ifile},0);
     1386                [tild,tild,MaskFile{ifile},i1_series,i2_series,j1_series,j2_series,MaskNomType,MaskFileInfo]=find_file_series(MaskPath,ListFiles{ifile},0);
     1387                MaskFileType=MaskFileInfo.FileType;
    13871388                if strcmp(MaskFileType,'image') && isempty(i2_series) && isempty(j2_series)
    13881389                    mdetect=1;
     
    21852186    case 'multimage'
    21862187        if ~strcmp(NomType,'*')
     2188            MaxIndex_j_cell=get(handles.MaxIndex_j,'String');
     2189            if num_j1>str2num(MaxIndex_j_cell{1})
     2190                errormsg='specified frame index exceeds file content';
     2191                return
     2192            else
    21872193            frame_index=num_j1;%frame index for movies or multimage
     2194            end
    21882195        else
     2196            MaxIndex_i_cell=get(handles.MaxIndex_i,'String');
     2197            if num_i1>str2num(MaxIndex_i_cell{1})
     2198                errormsg='specified frame index exceeds file content';
     2199                return
     2200            else
    21892201            frame_index=num_i1;
     2202            end
    21902203        end
    21912204    case 'vol' %TODO: update
     
    38773890
    38783891%% delete drawn objects if the output CooordUnit is different from the previous one
    3879 if  ~strcmp(CoordUnit,CoordUnitPrev)
     3892if  ~isempty(CoordUnit) && ~isempty(CoordUnitPrev) && ~strcmp(CoordUnit,CoordUnitPrev)
    38803893    set(handles.CheckFixLimits,'Value',0)
    38813894    hother=findobj('Tag','proj_object');%find all the proj objects
Note: See TracChangeset for help on using the changeset viewer.