Changeset 783 for trunk/src/uvmat.m
- Timestamp:
- Jun 5, 2014, 10:39:28 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/uvmat.m
r782 r783 643 643 [RootPath,SubDir,RootFile,FileIndices,FileExt]=read_file_boxes(handles); 644 644 % 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,File Type,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]); 646 646 if isempty(i1_series) 647 647 fileinput=uigetfile_uvmat('pick an input file',fullfile(RootPath,SubDir)); … … 666 666 [RootPath,SubDir,RootFile,FileIndices,FileExt]=read_file_boxes_1(handles); 667 667 % 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,File Type,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]); 669 669 if isempty(i1_series) 670 670 fileinput=uigetfile_uvmat('pick an input file for the second line',fullfile(RootPath,SubDir)); … … 737 737 % detect the file type, get the movie object if relevant, and look for the corresponding file series: 738 738 % 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,File Type,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]); 740 FileType=FileInfo.FileType; 741 741 if strcmp(FileType,'txt') 742 742 try … … 1384 1384 for ifile=1:numel(ListFiles) 1385 1385 [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; 1387 1388 if strcmp(MaskFileType,'image') && isempty(i2_series) && isempty(j2_series) 1388 1389 mdetect=1; … … 2185 2186 case 'multimage' 2186 2187 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 2187 2193 frame_index=num_j1;%frame index for movies or multimage 2194 end 2188 2195 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 2189 2201 frame_index=num_i1; 2202 end 2190 2203 end 2191 2204 case 'vol' %TODO: update … … 3877 3890 3878 3891 %% delete drawn objects if the output CooordUnit is different from the previous one 3879 if ~ strcmp(CoordUnit,CoordUnitPrev)3892 if ~isempty(CoordUnit) && ~isempty(CoordUnitPrev) && ~strcmp(CoordUnit,CoordUnitPrev) 3880 3893 set(handles.CheckFixLimits,'Value',0) 3881 3894 hother=findobj('Tag','proj_object');%find all the proj objects
Note: See TracChangeset
for help on using the changeset viewer.