Changeset 398 for trunk/src/civ.m
- Timestamp:
- Apr 26, 2012, 12:12:43 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/civ.m
r397 r398 395 395 396 396 %% scan the image file series 397 [RootPath,FileName,ImaExt]=fileparts(fileinput); 398 [RootFile,i1_series,tild,j1_series,tild,NomTypeIma,FileType,Object]=find_file_series(RootPath,[FileName ImaExt]); 399 if strcmp(NomTypeInput,'*')% movies will be opened at the first frame 400 i1=1; 401 i2=[]; 402 j1=[]; 403 j2=[]; 404 end 397 [FilePath,FileName,ImaExt]=fileparts(fileinput); 398 % detect the file type, get the movie object if relevant, and look for the corresponding file series: 399 % the root name and indices may be corrected by including the first index i1 if a corresponding xml file exists 400 [RootPath,SubDir,RootFile,i1_series,i2_series,j1_series,j2_series,NomTypeIma,FileType,Object,i1,i2,j1,j2]=find_file_series(FilePath,[FileName ImaExt]); 401 402 % [RootPath,FileName,ImaExt]=fileparts(fileinput); 403 % [RootFile,i1_series,tild,j1_series,tild,NomTypeIma,FileType,Object]=find_file_series(RootPath,[FileName ImaExt]); 404 % if strcmp(NomTypeInput,'*')% movies will be opened at the first frame 405 % i1=1; 406 % i2=[]; 407 % j1=[]; 408 % j2=[]; 409 % end 405 410 switch FileType 406 411 case {'image','multimage','video'} … … 427 432 428 433 %% scan the images if a civ file has been opened 429 % if ~isempty(NomTypeNc)430 % [tild,i1_series,tild,j1_series,tild,NomTypeIma,ImageType,Object]=find_file_series(RootPath,RootFile);431 % end432 434 MinIndex_i=min(i1_series(i1_series>0)); 433 435 MinIndex_j=min(j1_series(j1_series>0)); … … 2695 2697 [tild,RootFile_1]=fileparts(name); 2696 2698 else 2697 [tild,tild,RootFile_1,tild,tild,tild,tild,tild,nom_type_1]=fileparts_uvmat(fileinput); 2698 [RootFile_1,i1_series,tild,j1_series,tild,nom_type_1,FileType,Object]=find_file_series(PathName,FileName); 2699 [FilePath,FileName,Ext]=fileparts(fileinput); 2700 % detect the file type, get the movie object if relevant, and look for the corresponding file series: 2701 % the root name and indices may be corrected by including the first index i1 if a corresponding xml file exists 2702 [RootPath,SubDir,RootFile_1,i1_series,i2_series,j1_series,j2_series,nom_type_1,FileType,Object,i1,i2,j1,j2]=find_file_series(FilePath,[FileName Ext]); 2703 2704 % [tild,tild,RootFile_1,tild,tild,tild,tild,tild,nom_type_1]=fileparts_uvmat(fileinput); 2705 %[RootFile_1,i1_series,tild,j1_series,tild,nom_type_1,FileType,Object]=find_file_series(PathName,FileName); 2699 2706 %check image nom type 2700 2707 if ~strcmp(nom_type_1,get(handles.NomType,'String'))
Note: See TracChangeset
for help on using the changeset viewer.